Replies: 2 comments 3 replies
-
You can use catch-all routes:
https://nextjs.org/docs/routing/dynamic-routes#catch-all-routes |
Beta Was this translation helpful? Give feedback.
2 replies
-
Hello i already tried that but as i said there are collisions, both pages are loaded on the |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hello please i need help in nextjs , i have a blog page that contains and index.js and [slug].js page, i want the [slug].js to capture all the "blog/[slug]" urls and the index.js to capture the /blog url, please can someone help me out ?
ps: i don't want to create a subfolder for the slug of the articles because i want my route to be
www.mywebsite.com/blog/slug for the [slug].js
and
www.mywebsite.com/blog for the index.js
Beta Was this translation helpful? Give feedback.
All reactions