I'm using Next js. I want to use dynamic routing based on this documentation. How can I set two parameters like href="/page/[p1]/[p2]" to the Link component? What should be the structure of my page file and how use the router.query?
Folder structure should be Like that
Page - Folder
blog - Folder Name
[p1] - Folder Name
[p2].js - File Name
it will work when you call URL like /blog/postname/id it will call p2.js page
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With