mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-21 17:13:00 -05:00
[GH-ISSUE #15337] issue: OIDC Redirects to http://localhost:3000/auth Instead of Configured PUBLIC_URL After Authentik Login #120846
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Raman236 on GitHub (Jun 26, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/15337
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.15
Ollama Version (if applicable)
latest
Operating System
Linux
Browser (if applicable)
Chrome/Firefox/Edge
Confirmation
README.md.Expected Behavior
After login, user should be redirected to:
https://<redacted-domain>.com/auth#token=<JWT>Actual Behavior
After successfully logging into Open WebUI using Authentik via OIDC, the Web UI redirects to:
http://localhost:3000/auth#token=...The entire login flow completes successfully, including token exchange and callback reception.
However, the redirect breaks since my deployment is hosted at:
https://<redacted-domain>.comSteps to Reproduce
Logs & Screenshots
Additional Information
It was working fine for many months since November 2024. Only recently after an update in April or May, this has been happening
Please confirm:
@tjbck commented on GitHub (Jun 27, 2025):
Please read the changelogs before updating, this is an intended behaviour going forward.
@IdefixRC commented on GitHub (Sep 7, 2025):
Update: found another user with the same issue. Here is the fix:
WEBUI_URL is a persistent config variable
This means once it has been set (ever) you can't change it again from environment variables, only via the admin panel. Persistent config variables are meant for initial setup. Further changes are to be done in the admin panel.
Just change the webui url in the admin panel.