Fix AppFullLink (#37325)

Fix a bug the checkout command line hint becomes
`git fetch -u https://gitea.combircni/tea`
This commit is contained in:
Lunny Xiao
2026-04-20 16:57:08 -07:00
committed by GitHub
parent 3f3bebda0d
commit 85c09b8f45
2 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ func (c TemplateContext) AppFullLink(link ...string) template.URL {
if len(link) == 0 {
return template.URL(s)
}
return template.URL(s + strings.TrimPrefix(link[0], "/"))
return template.URL(s + "/" + strings.TrimPrefix(link[0], "/"))
}
var globalVars = sync.OnceValue(func() (ret struct {