(refs #364)Keep links which start with '#'

This commit is contained in:
takezoe
2014-05-11 13:13:16 +09:00
parent 728b00e4c3
commit 70772f0d74

View File

@@ -102,7 +102,7 @@ class GitBucketHtmlSerializer(
}
private def fixUrl(url: String): String = {
if(!enableWikiLink || url.startsWith("http://") || url.startsWith("https://")){
if(!enableWikiLink || url.startsWith("http://") || url.startsWith("https://") || url.startsWith("#")){
url
} else {
repository.httpUrl.replaceFirst("/git/", "/").replaceFirst("\\.git$", "") + "/wiki/_blob/" + url