[PR #6] [MERGED] Force links to open in new tab #6

Closed
opened 2026-02-16 09:19:57 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anythingllm-embed/pull/6
Author: @shatfield4
Created: 4/22/2025
Status: Merged
Merged: 4/27/2025
Merged by: @timothycarambat

Base: mainHead: 3685-feat-add-configurable-link-target-on-open-setting-in-embed-to-override-default-link-targets


📝 Commits (4)

  • 979aa1a force links to open in new tab
  • 560d4f9 refactor opening links in new tab
  • fe6a782 match master implementation
  • b5b170f remove unused import

📊 Changes

3 files changed (+16 additions, -3 deletions)

View changed files

📝 src/components/ChatWindow/ChatContainer/ChatHistory/HistoricalMessage/index.jsx (+1 -3)
📝 src/utils/chat/markdown.js (+7 -0)
src/utils/chat/purify.js (+8 -0)

📄 Description

  • Force links returned to use to open in new tab
  • Modify renderMarkdown util to handle links
  • Move DOMPurify to purify.js util

Resolves https://github.com/Mintplex-Labs/anything-llm/issues/3685


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anythingllm-embed/pull/6 **Author:** [@shatfield4](https://github.com/shatfield4) **Created:** 4/22/2025 **Status:** ✅ Merged **Merged:** 4/27/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `main` ← **Head:** `3685-feat-add-configurable-link-target-on-open-setting-in-embed-to-override-default-link-targets` --- ### 📝 Commits (4) - [`979aa1a`](https://github.com/Mintplex-Labs/anythingllm-embed/commit/979aa1a242b8806e1f011d734583062d3362a4f6) force links to open in new tab - [`560d4f9`](https://github.com/Mintplex-Labs/anythingllm-embed/commit/560d4f9b04b9fbdf87014c0198353419e9435a55) refactor opening links in new tab - [`fe6a782`](https://github.com/Mintplex-Labs/anythingllm-embed/commit/fe6a782f287e2d7c0f073ce847b1faf77057d3a6) match master implementation - [`b5b170f`](https://github.com/Mintplex-Labs/anythingllm-embed/commit/b5b170f5861b6ebd3121acd3873f4df26c1c5a37) remove unused import ### 📊 Changes **3 files changed** (+16 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `src/components/ChatWindow/ChatContainer/ChatHistory/HistoricalMessage/index.jsx` (+1 -3) 📝 `src/utils/chat/markdown.js` (+7 -0) ➕ `src/utils/chat/purify.js` (+8 -0) </details> ### 📄 Description - Force links returned to use to open in new tab - Modify `renderMarkdown` util to handle <a> links - Move `DOMPurify` to `purify.js` util Resolves https://github.com/Mintplex-Labs/anything-llm/issues/3685 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 09:19:57 -05:00
yindo closed this issue 2026-02-16 09:19:57 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anythingllm-embed#6