fixed infinite redirect on tags route
This commit is contained in:
parent
46518da13c
commit
674fb60f86
2
app.moon
2
app.moon
@ -71,7 +71,7 @@ class extends lapis.Application
|
|||||||
-- validate page
|
-- validate page
|
||||||
if @page < 1
|
if @page < 1
|
||||||
return redirect_to: @url_for "tags", order: @order, asc_desc: @asc_desc, page: 1
|
return redirect_to: @url_for "tags", order: @order, asc_desc: @asc_desc, page: 1
|
||||||
else
|
if @page > @last_page
|
||||||
return redirect_to: @url_for "tags", order: @order, asc_desc: @asc_desc, page: @last_page
|
return redirect_to: @url_for "tags", order: @order, asc_desc: @asc_desc, page: @last_page
|
||||||
|
|
||||||
@tags = tags\get_page(@page)
|
@tags = tags\get_page(@page)
|
||||||
|
Reference in New Issue
Block a user