mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-24 10:46:10 +01:00
In the wiki title replace tab with a space (#371)
This commit is contained in:
parent
cbcb4361d5
commit
abcd39f7d5
|
@ -33,6 +33,7 @@ func ToWikiPageURL(name string) string {
|
|||
// that are not belong to wiki repository.
|
||||
func ToWikiPageName(urlString string) string {
|
||||
name, _ := url.QueryUnescape(strings.Replace(urlString, "-", " ", -1))
|
||||
name = strings.Replace(name, "\t", " ", -1)
|
||||
return strings.Replace(strings.TrimLeft(name, "./"), "/", " ", -1)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue