fixed infinite redirect on tags route

This commit is contained in:
Tangent 2019-06-27 20:24:40 -07:00
parent 46518da13c
commit 674fb60f86

View File

@ -71,7 +71,7 @@ class extends lapis.Application
-- validate page
if @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
@tags = tags\get_page(@page)