mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-12 10:04:14 -05:00
[PR #14728] [CLOSED] fix: resolve logout redirect issue by adding JSON response parsing #10364
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/14728
Author: @ShirasawaSama
Created: 6/6/2025
Status: ❌ Closed
Base:
dev← Head:fix_logout_response_parsing📝 Commits (1)
58f9114fix: add missing .json() call to logout fetch request📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
src/lib/apis/auths/index.ts(+1 -1)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
The logout functionality was experiencing redirect failures, preventing users from being properly redirected to the expected page after logging out.
https://github.com/open-webui/open-webui/blob/main/src/lib/components/layout/Sidebar/UserMenu.svelte#L212
And
https://github.com/open-webui/open-webui/blob/main/src/routes/%2Blayout.svelte#L472
Investigation revealed that the logout fetch request was missing the .json() method call, resulting in redirect URL information being lost or malformed.
Added
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Screenshots or Videos
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.