Skip to content

Commit

Permalink
fix: further skip hash links (fix #1883)
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Sep 18, 2024
1 parent 9965e40 commit 3f77496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vike/client/client-routing-runtime/skipLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function isHashUrl(url: string) {
return true
}
const removeHash = (url: string) => url.split('#')[0]
if (url.includes('#') && removeHash(url) === removeHash(window.location.href)) {
if (url.includes('#') && removeHash(url) === removeHash(window.location.pathname)) {
return true
}
return false
Expand Down

0 comments on commit 3f77496

Please sign in to comment.