Skip to content

Commit

Permalink
Fix: templates with spaces in name breaks documentation links yarl#163
Browse files Browse the repository at this point in the history
  • Loading branch information
Abbe98 committed Mar 1, 2022
1 parent 1da70e4 commit 6621cd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pattypan/panes/ChooseColumnsPane.java
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ private boolean showTemplateFields(String templateName) {
Hyperlink docLink = new Hyperlink(Util.text("choose-columns-template-doc"));
docLink.setMinHeight(25);
docLink.setOnAction(event -> {
Util.openUrl("https://commons.wikimedia.org/wiki/Template:" + template.name + "/doc");
Util.openUrl("https://commons.wikimedia.org/wiki/Template:" + template.name.replace(" ", "_") + "/doc");
});

templateDescContainer.getChildren().clear();
Expand Down

0 comments on commit 6621cd7

Please sign in to comment.