diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/com/gitblit/wicket/pages/RepositoryPage.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/wicket/pages/RepositoryPage.java b/src/main/java/com/gitblit/wicket/pages/RepositoryPage.java index 3b1d296b..157f9e7c 100644 --- a/src/main/java/com/gitblit/wicket/pages/RepositoryPage.java +++ b/src/main/java/com/gitblit/wicket/pages/RepositoryPage.java @@ -660,7 +660,8 @@ public abstract class RepositoryPage extends RootPage { @Override
public Rendering render(WikiLinkNode node) {
try {
- String path = URLEncoder.encode(node.getText().replace(' ', '-'), "UTF-8");
+ String fsc = GitBlit.getString(Keys.web.forwardSlashCharacter, "/");
+ String path = URLEncoder.encode(node.getText().replace(' ', '-'), "UTF-8").replace("%2F", fsc);
String name = node.getText();
if (name.indexOf('/') > -1) {
name = name.substring(name.lastIndexOf('/') + 1);
|