Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,18 @@ export const EntryItemWrapper: FC<
e.preventDefault()
e.stopPropagation()

const target = e.target as HTMLElement
const linkElement = target.closest("a")

if (linkElement) {
const href = linkElement.getAttribute("href")
if (!href) return

if (entry?.id && href.endsWith(entry.id)) return
window.open(href, "_blank")
return
}

const shouldNavigate = getRouteParams().entryId !== entry?.id

if (!shouldNavigate) return
Expand Down
Loading