fix login for path routed environment

This commit is contained in:
Jakob Ketterl 2021-04-18 15:59:05 +02:00
parent b9db64d4f9
commit da698e7a3c

View File

@ -42,5 +42,5 @@ class AuthorizationMixin(object):
):
self.send_response("{}", code=403)
else:
target = "/login?{0}".format(parse.urlencode({"ref": self.request.path}))
target = "{}login?{}".format(self.get_document_root(), parse.urlencode({"ref": self.request.path[1:]}))
self.send_redirect(target)