Skip to content

Commit

Permalink
Use sub url.
Browse files Browse the repository at this point in the history
  • Loading branch information
KN4CK3R committed Jan 29, 2023
1 parent d88b221 commit 7e695ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/markup/html.go
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ func commitCrossReferencePatternProcessor(ctx *RenderContext, node *html.Node) {
}

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

replaceContent(node, ref.RefLocation.Start, ref.RefLocation.End, link)
node = node.NextSibling.NextSibling
Expand Down

0 comments on commit 7e695ae

Please sign in to comment.