mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[PR #15049] [MERGED] fix: regression for "open in new tab" #39326
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/15049
Author: @silentoplayz
Created: 6/17/2025
Status: ✅ Merged
Merged: 6/17/2025
Merged by: @tjbck
Base:
dev← Head:fixopeninnewtab📝 Commits (1)
354dd3cfix: regression for "open in new tab"📊 Changes
1 file changed (+12 additions, -10 deletions)
View changed files
📝
src/lib/components/layout/Sidebar/UserMenu.svelte(+12 -10)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
UserMenu.sveltecomponent by allowing "Playground" and "Admin Panel" options to be opened in a new tab via right-click, while also preventing them from being unintentionally dragged or highlighting text upon click-and-drag.Added
hrefattributes to the "Playground" (/playground) and "Admin Panel" (/admin) menu items, enabling standard browser link behavior (e.g., "Open in New Tab").rel="noopener noreferrer"attribute to these links for security best practices when opening new tabs.draggable="false"attribute to these links to prevent them from being draggable.select-noneTailwind CSS class to these links to prevent text highlighting on click-and-drag.Changed
<button>elements to<a>elements.Fixed
PlaygroundandAdmin Panelin UserMenu.svelte.Security
rel="noopener noreferrer"for improved security when opening new tabs.Additional Information
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.