Skip to content
Discussion options

You must be logged in to vote

Hi, on the latest version of Next.js you should no longer need to provide href and as and you only need to provide an href value matching the dynamic route e.g. for /blog/[post] you only need to provide an href value of /blog/post-1 now as of v9.5.3 of Next.js.

When using basePath you should not be providing this value in the href or as values as it is automatically handled.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@ijjk
Comment options

ijjk Sep 2, 2020
Maintainer

@derakhshanfar
Comment options

@derakhshanfar
Comment options

@derakhshanfar
Comment options

@derakhshanfar
Comment options

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