#Issues with child routes

3 messages · Page 1 of 1 (latest)

mellow fog
#

My routes look like this

pages
├── clients
│   ├── [id]
│   │   ├── edit.vue
│   │   ├── index.vue
│   │   └── timeline.vue
│   └── new.vue
├── clients.vue

But i'm unable to see the new.vue page when going to /clients/new, instead it loads the [id] routes.

Is there anyway to resolve this? Thanks

void ice
#

Hey, new won't match your page because you've got a dynamic route. That dynamic route is catching everything (including new, it assumes new is an id). Your best bet is split up the routes so you could have clients/new and clients/id/[id]/whatever you want here

harsh timber