mirror of
https://github.com/open-webui/open-webui.git
synced 2026-06-03 15:27:37 -05:00
[PR #11936] [MERGED] fix: redirection for users already logged in #45869
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/11936
Author: @softue
Created: 3/21/2025
Status: ✅ Merged
Merged: 3/21/2025
Merged by: @tjbck
Base:
dev← Head:auth-redirect📝 Commits (1)
c4c6e02fix: redirection for users already logged in📊 Changes
1 file changed (+2 additions, -1 deletions)
View changed files
📝
src/routes/auth/+page.svelte(+2 -1)📄 Description
Pull Request Checklist
I think we can continue the original discussion:
Frontend authentication redirection option #10318
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Redirection for users already logged in into Open WebUI. The current version works only when the user is not logged.
Example url (works only when the user is not logged in):
http://localhost:3000/auth?redirect=http://localhost:3000/admin/settings
Changed
This modification is considering redirect query string if the user is not undefined. I am using the same code on
setSessionUserintroduced by PR #10323.Fixed
Redirection according
redirectquery string with authenticated user.Redirect example using localhost instance:
http://localhost:3000/auth?redirect=http://localhost:3000/admin/settingsAdditional Information
This modification complements #10323
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.