Dynamic route for index.js #10714
Unanswered
marine1079
asked this question in
Help
Replies: 1 comment
-
This issue might be of assistance, it sounds similar to your question #10488 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want my landing page (pages/index.js) to have 0 or 1 param. (kind of user id)
It is for support personal landing page for those have param (user id) for index.js
(For those not have param, I'll just show general form.)
How can I make dynamic route for index.js without making pages/[id].js ?
If I make pages/[id].js, I should manage 2 files (pages/index.js, pages/[id].js) which has almost same code.
(I tried next/router but I could get param by /?id=123 which is not semantic url at all.)
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions