mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-07 14:05:52 +01:00
Adjust url only if enableWikiLink is true.
This commit is contained in:
@@ -96,7 +96,7 @@ class GitBucketHtmlSerializer(
|
|||||||
}
|
}
|
||||||
|
|
||||||
private def fixUrl(url: String): String = {
|
private def fixUrl(url: String): String = {
|
||||||
if(url.startsWith("http://") || url.startsWith("https://")) url
|
if(!enableWikiLink || url.startsWith("http://") || url.startsWith("https://")) url
|
||||||
else repository.url.replaceFirst("/git/", "/").replaceFirst("\\.git$", "") + "/wiki/_blob/" + url
|
else repository.url.replaceFirst("/git/", "/").replaceFirst("\\.git$", "") + "/wiki/_blob/" + url
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user