Skip to content
Discussion options

You must be logged in to vote

I think what you are seeing when you have an "incorrect" href like href="projects/[bar]" is that since next/link can't find that route it just default to the as value and just navigates to that url like any normal <a href> would do. If you look at your console you'll see a 404 for the prefetch of projects/[bar]. Normally when using next/link with the correct href it would do a client side render but in this case it does a full page refresh because Next can't find that page in the pages folder.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Seybo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants