Skip to content

Commit

Permalink
fix: link parser for self link
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Dec 23, 2023
1 parent d674fad commit 4d1dcda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/link-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const isSelfArticleUrl = (url: URL) => {
if (isDev && url.hostname === 'innei.in') return true
return (
url.hostname === location.hostname &&
['posts/', 'notes/'].some((path) => url.pathname.startsWith(path))
['/posts/', '/notes/'].some((path) => url.pathname.startsWith(path))
)
}

Expand Down

0 comments on commit 4d1dcda

Please sign in to comment.