mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 22:21:27 -05:00
[PR #2180] [MERGED] Always open links in chat in a new tab #7714
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/2180
Author: @austenadler
Created: 5/11/2024
Status: ✅ Merged
Merged: 5/26/2024
Merged by: @tjbck
Base:
dev← Head:dev📝 Commits (2)
3a1fbb9Always open links in a new tabc979999Also replace > with >📊 Changes
2 files changed (+11 additions, -1 deletions)
View changed files
📝
src/lib/components/chat/Messages/ResponseMessage.svelte(+7 -0)📝
src/lib/utils/index.ts(+4 -1)📄 Description
Pull Request Checklist
devbranch.Description
Add
target="_blank" rel="nofollow"to all links in the chat history window. It is annoying to click a link in a chat and have it unload Open-Webui, so I added this feature. (This)[https://github.com/markedjs/marked/issues/655#issuecomment-383226346] issue in themarkedrepo describes how to do this properly.This only applies to links within chat messages. For example, asking a model
what is the URL of https://google.com?and clicking the link in your message or the one it produces.Changelog Entry
Changed
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.