mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 16:33:38 +08:00
Oops, I meant 1
This commit is contained in:
parent
7288bf1f31
commit
b15e771d67
|
@ -208,7 +208,7 @@ class ListController < ApplicationController
|
|||
end
|
||||
|
||||
def prev_page_params(opts = nil)
|
||||
page_params(opts).merge(page: params[:page].to_i > 1 ? (params[:page].to_i - 1) : 0)
|
||||
page_params(opts).merge(page: params[:page].to_i > 1 ? (params[:page].to_i - 1) : 1)
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user