mirror of
https://github.com/go-gitea/gitea
synced 2025-07-05 10:07:22 +00:00
Respect branch info for relative links (#28909)
Fix #28904 Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
@ -137,6 +137,8 @@ func (g *ASTTransformer) Transform(node *ast.Document, reader text.Reader, pc pa
|
||||
var base string
|
||||
if ctx.IsWiki {
|
||||
base = ctx.Links.WikiLink()
|
||||
} else if ctx.Links.HasBranchInfo() {
|
||||
base = ctx.Links.SrcLink()
|
||||
} else {
|
||||
base = ctx.Links.Base
|
||||
}
|
||||
|
Reference in New Issue
Block a user