diff options
Diffstat (limited to 'routers/web/org/home.go')
-rw-r--r-- | routers/web/org/home.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/routers/web/org/home.go b/routers/web/org/home.go index aad0a2a90b..8c1475d469 100644 --- a/routers/web/org/home.go +++ b/routers/web/org/home.go @@ -51,8 +51,8 @@ func Home(ctx *context.Context) { } var orderBy models.SearchOrderBy - ctx.Data["SortType"] = ctx.Query("sort") - switch ctx.Query("sort") { + ctx.Data["SortType"] = ctx.Form("sort") + switch ctx.Form("sort") { case "newest": orderBy = models.SearchOrderByNewest case "oldest": @@ -78,10 +78,10 @@ func Home(ctx *context.Context) { orderBy = models.SearchOrderByRecentUpdated } - keyword := strings.Trim(ctx.Query("q"), " ") + keyword := strings.Trim(ctx.Form("q"), " ") ctx.Data["Keyword"] = keyword - page := ctx.QueryInt("page") + page := ctx.FormInt("page") if page <= 0 { page = 1 } |