Skip to content

Commit af9998b

Browse files
authored
fix UI display problem when wiki name is non-ascii charset (#1142)
1 parent 7ed00b6 commit af9998b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routers/repo/wiki.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ func renderUncycloPage(ctx *context.Context, isViewPage bool) (*git.Repository, *gi
209209
continue
210210
}
211211
pages = append(pages, PageMeta{
212-
Name: strings.Replace(name, "-", " ", -1),
212+
Name: models.ToUncycloPageName(name),
213213
URL: models.ToUncycloPageURL(name),
214214
})
215215
}
@@ -361,7 +361,7 @@ func UncycloPages(ctx *context.Context) {
361361
continue
362362
}
363363
pages = append(pages, PageMeta{
364-
Name: name,
364+
Name: models.ToUncycloPageName(name),
365365
URL: models.ToUncycloPageURL(name),
366366
Updated: c.Author.When,
367367
})

0 commit comments

Comments
 (0)