mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-23 12:31:30 +02:00
open chatdocument links in a new tab instead of overriding danswer (#2090)
Co-authored-by: Jos Van der westhuizen <jos@danser.ai>
This commit is contained in:
@@ -46,6 +46,7 @@ export function ChatDocumentDisplay({
|
|||||||
<div className="flex relative justify-start overflow-y-visible">
|
<div className="flex relative justify-start overflow-y-visible">
|
||||||
<a
|
<a
|
||||||
href={document.link}
|
href={document.link}
|
||||||
|
target="_blank"
|
||||||
className={
|
className={
|
||||||
"rounded-lg flex font-bold flex-shrink truncate" +
|
"rounded-lg flex font-bold flex-shrink truncate" +
|
||||||
(document.link ? "" : "pointer-events-none")
|
(document.link ? "" : "pointer-events-none")
|
||||||
|
Reference in New Issue
Block a user