diff options
Diffstat (limited to 'packages/integrations/prefetch/src')
-rw-r--r-- | packages/integrations/prefetch/src/client.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/integrations/prefetch/src/client.ts b/packages/integrations/prefetch/src/client.ts index 50df858cb..0b37946ee 100644 --- a/packages/integrations/prefetch/src/client.ts +++ b/packages/integrations/prefetch/src/client.ts @@ -11,7 +11,7 @@ function shouldPreload({ href }: { href: string }) { const url = new URL(href); return ( window.location.origin === url.origin && - window.location.pathname !== url.hash && + window.location.pathname !== url.pathname && !preloaded.has(href) ); } catch {} |