Deal with '/' in Wiki page title.
pull/4155/head
huqiangit 2017-02-19 11:51:21 +08:00 committed by 无闻
parent 40fbe7fa8e
commit c3f52ab52d
1 changed files with 2 additions and 2 deletions

View File

@ -218,7 +218,7 @@ func NewWikiPost(ctx *context.Context, form auth.NewWikiForm) {
return
}
ctx.Redirect(ctx.Repo.RepoLink + "/wiki/" + models.ToWikiPageURL(form.Title))
ctx.Redirect(ctx.Repo.RepoLink + "/wiki/" + models.ToWikiPageURL(models.ToWikiPageName(form.Title)))
}
func EditWiki(ctx *context.Context) {
@ -254,7 +254,7 @@ func EditWikiPost(ctx *context.Context, form auth.NewWikiForm) {
return
}
ctx.Redirect(ctx.Repo.RepoLink + "/wiki/" + models.ToWikiPageURL(form.Title))
ctx.Redirect(ctx.Repo.RepoLink + "/wiki/" + models.ToWikiPageURL(models.ToWikiPageName(form.Title)))
}
func DeleteWikiPagePost(ctx *context.Context) {