Skip to content

Commit

Permalink
fix UI display problem when wiki name is non-ascii charset (#1142)
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Mar 8, 2017
1 parent 7ed00b6 commit af9998b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routers/repo/wiki.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
})
}
Expand Down Expand Up @@ -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,
})
Expand Down

0 comments on commit af9998b

Please sign in to comment.