-
Notifications
You must be signed in to change notification settings - Fork 27.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pages reload in dev mode when using Link #5606
Comments
Please read this comment: #2833 (comment) You're probably using |
Hi @timneutkens, thank you for your reply, actually, I found out the reason for this behaviour is something else completely different. The reason is that I am forcing trailing slashes on all pages, and on DEV mode, that causes the trailing slash to be appended into the I managed to confirm this by editing the As, of course, this is not sustainable to keep as a solution from my end, we've solved it using express-urlrewrite, and removing the trailing slash from any request that starts with /_next/on-demand-entries-ping. 👍 Anyway, I know there's a whole discussion about using or not using trailing slashes, and you might not be interested in adding this change to next itself (even though I'd be happy to have it there), but I hope our solution can at least help people with the same problem. Thanks -- |
Hi, I am having an same issue which I believe to be very similar to #2147. As 2147 is closed, and is related to a previous (much older) version, I am creating a fresh new issue ticket.
In dev mode only, clicking a Link to any page causes a reload of the new page.
To Reproduce:
<Link>
wrapping an<a>
to a pageExpected behaviour:
Perceived behaviour:
System information
8.11.3
7.0.1
4.16.4
Seeing this in Chrome. I'm noticing that the server is showing a 200 to the new page's URL, so it's a full page load rather than just re-rendering client side.
-- Further information --
nextjs({ dev }).render
The text was updated successfully, but these errors were encountered: