mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 12:55:19 +00:00
fix: Trailing slash was never removed from request.base_url because it's not a string but rather a starlette.datastructures.URL
This commit is contained in:
parent
8a2723a7a6
commit
fced3efd98
1 changed files with 1 additions and 1 deletions
|
|
@ -537,7 +537,7 @@ class OAuthManager:
|
|||
)
|
||||
# Redirect back to the frontend with the JWT token
|
||||
|
||||
redirect_base_url = request.app.state.config.WEBUI_URL or request.base_url
|
||||
redirect_base_url = str(request.app.state.config.WEBUI_URL or request.base_url)
|
||||
if isinstance(redirect_base_url, str) and redirect_base_url.endswith("/"):
|
||||
redirect_base_url = redirect_base_url[:-1]
|
||||
redirect_url = f"{redirect_base_url}/auth#token={jwt_token}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue