Replies: 1 comment 2 replies
-
You links should use <Link href="/[username]" as="/marcus">
<Link href="/[username]" as="/frederic">
<Link href="/[username]" as="/paul"> |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all!
I've several pages with the same structure, so as not to keep the same logic for each page, I decided to create dynamic routes in custom server.js file.
Contents of server.js
As we know from the documentation, for such links we need to add
as
attribute along withhref
.So, I created such link tags:
But after navigating to one of them, the page is reloading.
Maybe somebody had a problem like that and can help?
Beta Was this translation helpful? Give feedback.
All reactions