mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-12-01 06:16:09 +01:00
fix UI display problem when wiki name is non-ascii charset (#1142)
This commit is contained in:
parent
7ed00b6e8d
commit
af9998b8a7
|
@ -209,7 +209,7 @@ func renderWikiPage(ctx *context.Context, isViewPage bool) (*git.Repository, *gi
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
pages = append(pages, PageMeta{
|
pages = append(pages, PageMeta{
|
||||||
Name: strings.Replace(name, "-", " ", -1),
|
Name: models.ToWikiPageName(name),
|
||||||
URL: models.ToWikiPageURL(name),
|
URL: models.ToWikiPageURL(name),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -361,7 +361,7 @@ func WikiPages(ctx *context.Context) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
pages = append(pages, PageMeta{
|
pages = append(pages, PageMeta{
|
||||||
Name: name,
|
Name: models.ToWikiPageName(name),
|
||||||
URL: models.ToWikiPageURL(name),
|
URL: models.ToWikiPageURL(name),
|
||||||
Updated: c.Author.When,
|
Updated: c.Author.When,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue