fix: keep frontend routes under subpath mounts
This commit is contained in:
@@ -256,7 +256,7 @@ def check_auth(handler, parsed) -> bool:
|
||||
# safe='/' keeps path separators readable; everything else (including
|
||||
# `?`, `&`, `=`) gets percent-encoded.
|
||||
_next = _urlparse.quote(_path_with_query, safe='/')
|
||||
handler.send_header('Location', '/login?next=' + _next)
|
||||
handler.send_header('Location', 'login?next=' + _next)
|
||||
handler.end_headers()
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user