mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-09 00:58:30 +02:00
Fix AppFullLink (#37325)
Fix a bug the checkout command line hint becomes `git fetch -u https://gitea.combircni/tea`
This commit is contained in:
1 parent
3f3bebda0d
commit
85c09b8f45
2 files changed
+15
-1
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user