Skip to content

Commit

Permalink
trigger rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
Janpot committed Jul 3, 2020
1 parent cbb63b5 commit 68f7d6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/next/client/link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function prefetch(
}
})
// Join on an invalid URI character
prefetched[href + '%' + as] = true
prefetched[href + '%' + (as || href)] = true
}

function linkClicked(
Expand Down Expand Up @@ -192,7 +192,7 @@ function Link(props: React.PropsWithChildren<LinkProps>) {
React.useEffect(() => {
if (p && IntersectionObserver && childElm && childElm.tagName) {
// Join on an invalid URI character
const isPrefetched = prefetched[href + '%' + as]
const isPrefetched = prefetched[href + '%' + (as || href)]
if (!isPrefetched) {
return listenToIntersections(childElm, () => {
prefetch(router, href, as)
Expand Down

0 comments on commit 68f7d6c

Please sign in to comment.