mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 06:43:37 +08:00
Oops, I meant 1
This commit is contained in:
parent
7288bf1f31
commit
b15e771d67
|
@ -208,7 +208,7 @@ class ListController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def prev_page_params(opts = nil)
|
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
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user