diff options
Diffstat (limited to 'routers/web/explore/user.go')
-rw-r--r-- | routers/web/explore/user.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/explore/user.go b/routers/web/explore/user.go index b79a79fb2c..18337aff48 100644 --- a/routers/web/explore/user.go +++ b/routers/web/explore/user.go @@ -33,8 +33,8 @@ func isKeywordValid(keyword string) bool { // RenderUserSearch render user search page func RenderUserSearch(ctx *context.Context, opts *user_model.SearchUserOptions, tplName base.TplName) { // Sitemap index for sitemap paths - opts.Page = int(ctx.ParamsInt64("idx")) - isSitemap := ctx.Params("idx") != "" + opts.Page = int(ctx.PathParamInt64("idx")) + isSitemap := ctx.PathParam("idx") != "" if opts.Page <= 1 { opts.Page = ctx.FormInt("page") } |