The `q` parameter was not rendered in pagination links because
`context.Pagination:AddParam` checks for existance of the parameter in
`ctx.Data` where it was absent. Added the parameter there to fix it.
page = 1
}
+ keyword := ctx.FormTrim("q")
+ ctx.Data["Keyword"] = keyword
+
var orderBy db.SearchOrderBy
ctx.Data["SortType"] = ctx.FormString("sort")
switch ctx.FormString("sort") {
Page: page,
},
Actor: ctx.Doer,
- Keyword: ctx.FormTrim("q"),
+ Keyword: keyword,
OrderBy: orderBy,
Private: ctx.IsSigned,
WatchedByID: ctx.Doer.ID,