1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-24 03:47:40 +00:00

Updated testresults

Changed optional-requirements
Prevent redirect 308 on /<data> routes (#1854)
This commit is contained in:
Ozzie Isaacs
2021-02-09 18:04:49 +01:00
parent 7b7494b8a4
commit 3c1b06872d
2 changed files with 51 additions and 45 deletions

View File

@@ -719,8 +719,8 @@ def index(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>/<int:page>')
@login_required_if_no_ano