From fbb905957bf25291b003b9e64419711e72231872 Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Mon, 8 Feb 2021 18:55:48 +0100 Subject: [PATCH] Prevent redirect 308 on / routes --- cps/web.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cps/web.py b/cps/web.py index 5b805ac8..09744baf 100644 --- a/cps/web.py +++ b/cps/web.py @@ -719,8 +719,8 @@ def index(page): return render_books_list("newest", sort_param, 1, page) -@web.route('//', defaults={'page': 1, 'book_id': "1"}) -@web.route('///', defaults={'page': 1, 'book_id': "1"}) +@web.route('//', defaults={'page': 1, 'book_id': 1}) +@web.route('///', defaults={'page': 1, 'book_id': 1}) @web.route('///', defaults={'page': 1}) @web.route('////') @login_required_if_no_ano