1
0
Fork 0
forked from forgejo/forgejo

Don't open new page for ext wiki on same repository (#20725) (#20910)

* Don't open new page for ext wiki on same repository (#20725)

- Backport of #20725
  - When the external wiki has been set to a file on the repository, don't open the page on a tab.
  - Resolves #20657

* Gofmt

* Fix line

Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
Gusted 2022-08-23 01:58:11 +02:00 committed by GitHub
parent bf41958c16
commit c0754e9d19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -454,6 +454,7 @@ func NewFuncMap() []template.FuncMap {
}
return items
},
"HasPrefix": strings.HasPrefix,
}}
}