mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #22849] [CLOSED] fix: use SvelteKit client-side navigation for Playground and Admin Panel menu items #26886
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/22849
Author: @voidborne-d
Created: 3/19/2026
Status: ❌ Closed
Base:
main← Head:fix/user-menu-spa-navigation📝 Commits (1)
b357274fix: use SvelteKit goto() for Playground and Admin Panel navigation📊 Changes
1 file changed (+2 additions, -6 deletions)
View changed files
📝
src/lib/components/layout/Sidebar/UserMenu.svelte(+2 -6)📄 Description
Summary
Fixes #22733 — Full Page Reload on User Menu
PlaygroundandAdmin PanelNavigation.Problem
The
PlaygroundandAdmin Panelbuttons in the user dropdown menu useDropdownMenu.Itemwithas="a"andhref="/playground"/href="/admin". This renders native<a>tags that trigger full-page navigation instead of SvelteKit client-side routing.Fix
Removed
as="a",href, anddraggableattributes from both menu items and addedgoto()calls (already imported) inside the existingon:clickhandlers. This ensures client-side SPA navigation without full page reloads.Changes
<a href="/playground">withgoto('/playground')in click handler<a href="/admin">withgoto('/admin')in click handlerTesting
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.