From b5bbdae3178769c005d3290bcc20d8ca7e92fbd7 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Thu, 9 Jun 2022 18:43:54 +0200 Subject: [PATCH] fix failed logins for path-routed environemnts --- owrx/controllers/session.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/owrx/controllers/session.py b/owrx/controllers/session.py index 6807a91..5dd3c88 100644 --- a/owrx/controllers/session.py +++ b/owrx/controllers/session.py @@ -72,8 +72,8 @@ class SessionController(WebpageController): self.set_response_cookies(cookie) self.send_redirect(target) return - target = "?{}".format(urlencode({"ref": self.request.query["ref"][0]})) if "ref" in self.request.query else "" - self.send_redirect(self.request.path + target) + target = "{}login?{}".format(self.get_document_root(), urlencode({"ref": self.request.query["ref"][0]})) + self.send_redirect(target) def logoutAction(self): self.send_redirect("logout happening here")