Browse Source

fix UI display problem when wiki name is non-ascii charset (#1142)

tags/v1.2.0-rc1
Lunny Xiao GitHub 9 years ago
parent
commit
dc34c6bba2
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      routers/repo/wiki.go

+ 2
- 2
routers/repo/wiki.go View File

@@ -209,7 +209,7 @@ func renderWikiPage(ctx *context.Context, isViewPage bool) (*git.Repository, *gi
continue
}
pages = append(pages, PageMeta{
Name: strings.Replace(name, "-", " ", -1),
Name: models.ToWikiPageName(name),
URL: models.ToWikiPageURL(name),
})
}
@@ -361,7 +361,7 @@ func WikiPages(ctx *context.Context) {
continue
}
pages = append(pages, PageMeta{
Name: name,
Name: models.ToWikiPageName(name),
URL: models.ToWikiPageURL(name),
Updated: c.Author.When,
})


Loading…
Cancel
Save