Commit fbb90595 authored by Ozzie Isaacs's avatar Ozzie Isaacs

Prevent redirect 308 on /<data> routes

parent e0ce1358
...@@ -719,8 +719,8 @@ def index(page): ...@@ -719,8 +719,8 @@ def index(page):
return render_books_list("newest", sort_param, 1, page) return render_books_list("newest", sort_param, 1, page)
@web.route('/<data>/<sort_param>', defaults={'page': 1, 'book_id': "1"}) @web.route('/<data>/<sort_param>', defaults={'page': 1, 'book_id': 1})
@web.route('/<data>/<sort_param>/', defaults={'page': 1, 'book_id': "1"}) @web.route('/<data>/<sort_param>/', defaults={'page': 1, 'book_id': 1})
@web.route('/<data>/<sort_param>/<book_id>', defaults={'page': 1}) @web.route('/<data>/<sort_param>/<book_id>', defaults={'page': 1})
@web.route('/<data>/<sort_param>/<book_id>/<int:page>') @web.route('/<data>/<sort_param>/<book_id>/<int:page>')
@login_required_if_no_ano @login_required_if_no_ano
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment