This commit is contained in:
Naoki Takezoe
2018-11-09 14:03:49 +09:00
parent 3782c74f61
commit 37df03815e

View File

@@ -176,13 +176,7 @@ object Markdown {
} else if (!enableWikiLink) {
if (context.currentPath.contains("/blob/")) {
urlWithRawParam
// } else if (context.currentPath.contains("/tree/")) {
// val paths = context.currentPath.split("/")
// //val branch = if (paths.length > 3) paths.drop(4).mkString("/") else branch
// repository.httpUrl.replaceFirst("/git/", "/").stripSuffix(".git") + "/blob/" + branch + "/" + urlWithRawParam
} else {
// val paths = context.currentPath.split("/")
//val branch = if (paths.length > 3) paths.last else branch
repository.httpUrl.replaceFirst("/git/", "/").stripSuffix(".git") + "/blob/" + branch + "/" + urlWithRawParam
}
} else {