From bc085435853a2f659802783edbe7529dab259ac0 Mon Sep 17 00:00:00 2001 From: Benjamin Raethlein Date: Fri, 25 Oct 2019 15:32:43 +0200 Subject: [PATCH] Add base_url support to authorization handler redirect --- nativeauthenticator/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nativeauthenticator/handlers.py b/nativeauthenticator/handlers.py index 62bfff8..4a57dc5 100644 --- a/nativeauthenticator/handlers.py +++ b/nativeauthenticator/handlers.py @@ -109,7 +109,7 @@ class ChangeAuthorizationHandler(LocalBase): @admin_only async def get(self, slug): UserInfo.change_authorization(self.db, slug) - self.redirect('/authorize') + self.redirect(self.hub.base_url + 'authorize') class ChangePasswordHandler(LocalBase):