Skip to content
Discussion options

You must be logged in to vote

TL;DR Next.js doesn't ship a manifest of routes to the client, so it doesn't know that /users/${user.id} has to use the page /users/[id].

Link is only used for page navigations, so the href attribute is used to select the page, which is usually the same path that's going to be in the URL, when that's not the case is when as is required, to let href select the page and then as will select the path.

It can be confusing, but we'll be working on improving this 😌

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@andreaslorozco
Comment options

Answer selected by andreaslorozco
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