fix: keep frontend routes under subpath mounts

This commit is contained in:
Michael Lam
2026-05-03 23:57:52 -07:00
parent 9986d2fd30
commit e9d7d5e427
15 changed files with 105 additions and 36 deletions

View File

@@ -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