Nested routes custom id

andysay
0
andysay
commented 10 months ago

hello , i'm try get page by custom id like this ' c0476d0a-7c69-4f87-9b6a-1a931be5fe1a '

but nuxt say me page not-found, works only with numbers? how use c0476d0a-7c69-4f87-9b6a-1a931be5fe1a id's .. thanks.

0
toadkicker
35
toadkicker
commented 5 months ago

I'm using UUID's in my URLS like so:

    validate({params}) {
      return params.id.match(/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}/)
    },
1
Informations
Question โ€ข Resolved
#c102 - Created 10 months ago