Redirect to external instead of pre-fetch after clicking an external link
Answered
Muscovy Duck posted this in #help-forum
Muscovy DuckOP
I have a peculiar bug with NextJS 13.4.12 with the
* In production (npm run build && npm run start)
* I have a
* If I click this link and come back to previous URL, if I scroll down the page, I get automatically redirected to the previous external link that I click
* I have the impression that this is due to prefetching of the Link component that redirects me instead of prefecthing
Any idea on what might cause this issue?
next/link
component.* In production (npm run build && npm run start)
* I have a
<Link />
that is pointing to an external link* If I click this link and come back to previous URL, if I scroll down the page, I get automatically redirected to the previous external link that I click
* I have the impression that this is due to prefetching of the Link component that redirects me instead of prefecthing
Any idea on what might cause this issue?
Answered by risky
firstly, can you try updating to latest version... (
13.4.19
is the latest)