Closed mustafa0x closed 3 years ago
You may use param /:idandslug
, then just split it inside the route like this:
const meta = router.meta();
let id,slug;
`$: [id,slug] = $meta.params.idandslug.split('-');
Thank you, that's good enough.
I'm finding myself needing regex match more often. Is there any chance regex support will be added at some point? Thanks.
Is there anyway to match something like
/:id-:slug
? Or does it have to be/:id/:slug
?What would be the easiest way to achieve
/:id-:slug
?