Closed erickeno closed 7 years ago
Mmm, try using this:
<Link route='/:category/:slug' params={{ category: 'example', slug: 'some-slug' }}>...</Link>
or with a route name
routes.add(yourRouteName, '/:category/:slug', 'post');
<Link route={yourRouteName} params={{ category: 'example', slug: 'some-slug' }}>...</Link>
Without a route name, you can only link by URL:
<Link route='/example/some-slug'>
With a route name, you can generate it:
routes.add('post', '/:category/:slug')
<Link route='post' params={{category: 'example', slug: 'some-slug'}}>
Hope it helps!
thanks for the help, it worked.
I am having an issue setting up multiple params
and in the link in one of the pages I have
and I keep getting this error
Parameter 'url' must be a string, not undefined
.