We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bcc6fa commit 4e6e633Copy full SHA for 4e6e633
1 file changed
apps/desktop/layer/renderer/src/modules/entry-column/layouts/EntryItemWrapper.tsx
@@ -89,6 +89,18 @@ export const EntryItemWrapper: FC<
89
e.preventDefault()
90
e.stopPropagation()
91
92
+ const target = e.target as HTMLElement
93
+ const linkElement = target.closest("a")
94
+
95
+ if (linkElement) {
96
+ const href = linkElement.getAttribute("href")
97
+ if (!href) return
98
99
+ if (entry?.id && href.endsWith(entry.id)) return
100
+ window.open(href, "_blank")
101
+ return
102
+ }
103
104
const shouldNavigate = getRouteParams().entryId !== entry?.id
105
106
if (!shouldNavigate) return
0 commit comments