Skip to content

Commit 7e695ae

Browse files
committed
Use sub url.
1 parent d88b221 commit 7e695ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/markup/html.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ func commitCrossReferencePatternProcessor(ctx *RenderContext, node *html.Node) {
921921
}
922922

923923
reftext := ref.Owner + "/" + ref.Name + "@" + base.ShortSha(ref.CommitSha)
924-
link := createLink(util.URLJoin(setting.AppURL, ref.Owner, ref.Name, "commit", ref.CommitSha), reftext, "commit")
924+
link := createLink(util.URLJoin(setting.AppSubURL, ref.Owner, ref.Name, "commit", ref.CommitSha), reftext, "commit")
925925

926926
replaceContent(node, ref.RefLocation.Start, ref.RefLocation.End, link)
927927
node = node.NextSibling.NextSibling

0 commit comments

Comments
 (0)