mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
* fix(ui): navigate to /ui/login/ with trailing slash via hard navigation Logged-out redirects targeted /ui/login without the trailing slash, so Starlette's StaticFiles(html=True) mount answered with a 307 whose absolute Location is built from the scheme the container sees. Behind a TLS-terminating reverse proxy uvicorn does not trust X-Forwarded-Proto by default, so the redirect downgraded https to http and stranded users on an unreachable URL (#33454). The auth guard also used the Next client router for this navigation, which first requests an RSC payload that the static export cannot serve, producing 404s before falling back to a full page load. Centralize the login URL in getLoginUrl(), which always emits the trailing slash so no server redirect fires, and use window.location.replace for the login redirects so no RSC fetch is attempted. * test(ui): expect trailing slash in expired-token login redirect |
||
|---|---|---|
| .. | ||
| litellm-dashboard | ||
| Dockerfile | ||
| nginx.conf | ||