fix login for path routed environment
This commit is contained in:
parent
b9db64d4f9
commit
da698e7a3c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user