From 56502499857a1457ae7766a8838c8b6a1aa8bbae Mon Sep 17 00:00:00 2001 From: Adnan Maolood Date: Sat, 14 May 2022 12:50:38 -0400 Subject: [PATCH] todosrht: Fix 405 error when clicking 'next' in ticket list When using the ticket preview feature, the URL would previously change to /~user/tracker/submit. Attempting to navigate to the next page of tickets afterwards would cause a 405 error since /~user/tracker/submit?page=N is an invalid link. Fix by changing the ticket submit route to /~user/tracker, so that adding ?page=N results in a valid link. --- todosrht/blueprints/tracker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/todosrht/blueprints/tracker.py b/todosrht/blueprints/tracker.py index b535bd4..86a892d 100644 --- a/todosrht/blueprints/tracker.py +++ b/todosrht/blueprints/tracker.py @@ -181,7 +181,7 @@ def disable_notifications(owner, name): db.session.commit() return redirect(tracker_url(tracker)) -@tracker.route("///submit", methods=["POST"]) +@tracker.route("//", methods=["POST"]) @loginrequired def tracker_submit_POST(owner, name): tracker, access = get_tracker(owner, name, True)