From 1e09ca64e620d17e73e5a8993c4fe5825a9d4fb2 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Thu, 20 Jun 2024 21:12:31 +1000 Subject: [PATCH] fix: Try to get next page directly --- website/routes.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/website/routes.py b/website/routes.py index 46b0378..0a8427c 100644 --- a/website/routes.py +++ b/website/routes.py @@ -187,10 +187,9 @@ def home(): if 'domains' in session: domains = session['domains'] - # URL encode the next page if next_page: - next_page = urllib.parse.quote(next_page) - + # find next in url + next_page = request.url.split("next=")[1] return render_template("home.html", user=user, clients=clients, address=address, hnsid=hnsid, users=users,