mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-28 12:30:00 +00:00
Prevent redirect 308 on /<data> routes
This commit is contained in:
parent
e0ce135838
commit
fbb905957b
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user