Skip to content

Commit 2dfc367

Browse files
committed
fix(frontend): fix entry link substitution
1 parent 15ad475 commit 2dfc367

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/src/components/Entry.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export default function Entry() {
135135
ref.querySelectorAll("a").forEach((el: HTMLElement) => {
136136
try {
137137
const url = new URL(el.getAttribute("href") || "")
138-
const e = entryUrlMap.get(url.origin)
138+
const e = entryUrlMap.get(url.origin + url.pathname)
139139
if (e) {
140140
// replace external link with internal link
141141
el.setAttribute("href", `/?${new URLSearchParams({

0 commit comments

Comments
 (0)