Setting up dynamic links for towns

Hi,
in my NUXT project, I have pages folder and a file _slug.vue this works well for linking and navigating across all pages.
However, I’d like to do something similar to towns link

so I can go:

/bristol
/london
/manchester

please help?

Hi @jarv,

Inside pages create another directory called towns with a _town.vue (or _slug.vue) file. As with your main _slug.vue you can then navigate to /towns/bristol, /towns/london, /towns/manchester.

Here’s an example https://codesandbox.io/s/green-cherry-vk7xw