#Nuxt 3 Post Detail page with id and slug as url
4 messages · Page 1 of 1 (latest)
You'll want to look into Dynamic Routes: https://nuxt.com/docs/guide/directory-structure/pages#dynamic-routes
Set up your folder/file structure in pages directory (ie. /product/[pid]/[slug].vue
Then access with route.params.pid & route.params.slug after defining const route = useRoute()
so it's all about the folder structure and I don't need to worry about routing?
Yes, you can opt into manual config routing but defaults to folder structure routing.