Skip to content

Commit 4d1dcda

Browse files
committed
fix: link parser for self link
Signed-off-by: Innei <[email protected]>
1 parent d674fad commit 4d1dcda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/link-parser.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const isSelfArticleUrl = (url: URL) => {
7777
if (isDev && url.hostname === 'innei.in') return true
7878
return (
7979
url.hostname === location.hostname &&
80-
['posts/', 'notes/'].some((path) => url.pathname.startsWith(path))
80+
['/posts/', '/notes/'].some((path) => url.pathname.startsWith(path))
8181
)
8282
}
8383

0 commit comments

Comments
 (0)