Redirect to external instead of pre-fetch after clicking an external link
Answered
Muscovy Duck posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
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)5 Replies
![Avatar](https://cdn.discordapp.com/avatars/657067112434499595/aff4eeb34922ca980b0d5fbb5bc60c21.webp?size=256)
risky
firstly, can you try updating to latest version... (
13.4.19
is the latest)Answer
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
Muscovy DuckOP
Oh right will try right away
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
Muscovy DuckOP
Noice, seems to be doing the trick ✨
Any idea if this was a known bug?
Any idea if this was a known bug?
![Avatar](https://cdn.discordapp.com/avatars/657067112434499595/aff4eeb34922ca980b0d5fbb5bc60c21.webp?size=256)
risky
well it is a lot of versions, so it could be (but i dont know)
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
Muscovy DuckOP
Thx!