Add the query to next and prev pages
This commit is contained in:
parent
bcbabce401
commit
3592c7fc0d
1 changed files with 2 additions and 2 deletions
|
@ -173,10 +173,10 @@ func newHandler(h handler) {
|
|||
}
|
||||
data.Page = page + 1
|
||||
if num > (page+1)*newItemsPage {
|
||||
data.Next = "/new/?p=" + strconv.Itoa(page+1)
|
||||
data.Next = "/new/?q=" + req + "&p=" + strconv.Itoa(page+1)
|
||||
}
|
||||
if page > 0 {
|
||||
data.Prev = "/new/?p=" + strconv.Itoa(page-1)
|
||||
data.Prev = "/new/?q=" + req + "&p=" + strconv.Itoa(page-1)
|
||||
}
|
||||
data.Search = req
|
||||
h.template.load(h, "new", data)
|
||||
|
|
Reference in a new issue