getStaticPaths should have access to the query params #17616
Replies: 1 comment 11 replies
-
I think that this would be very important, and it's even expected now that fallback is possible, being possible to generate static pages dynamically based on an id/slug. I think that query params should be accepted too, and render the same static page if the query params are the same. For example, in my site I have pages with urls like In this case it would be important to be able to specify which parameters I want to use (like Or an alternative would be to make NextJS use the page at |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Next.js should put a feature on getStaticPaths to have access on Params for more dynamic routes
e.g
When you have a site like netflix the ID's of their movies are large, in your getStaticPaths you should have access to the params so you can dynamically fetch the query id on routes
Beta Was this translation helpful? Give feedback.
All reactions