mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-08 14:35:52 +01:00
(refs #364)Keep links which start with '#'
This commit is contained in:
@@ -102,7 +102,7 @@ class GitBucketHtmlSerializer(
|
|||||||
}
|
}
|
||||||
|
|
||||||
private def fixUrl(url: String): String = {
|
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
|
url
|
||||||
} else {
|
} else {
|
||||||
repository.httpUrl.replaceFirst("/git/", "/").replaceFirst("\\.git$", "") + "/wiki/_blob/" + url
|
repository.httpUrl.replaceFirst("/git/", "/").replaceFirst("\\.git$", "") + "/wiki/_blob/" + url
|
||||||
|
|||||||
Reference in New Issue
Block a user