On my project Under pages folder there is a file named post.
On routes i have:
routes.add('post', '/postForMe/:slug')
On index.js file on pages folder i have a link
<Link route='/postForMe' params={{ slug: post.title }}>
<a>
Navigate me to a random post
</a>
</Link>
When i do this it does not take the params on the url.
if i do
<Link route='post' params={{ slug: post.title }}> it works but i want to pass the route path on the route props on Link not the file name. Can anyone help?
Hello, "next-routes": "^1.1.0",
On my project Under pages folder there is a file named post.
On routes i have: routes.add('post', '/postForMe/:slug')
On index.js file on pages folder i have a link
When i do this it does not take the params on the url. if i do
<Link route='post' params={{ slug: post.title }}>
it works but i want to pass the route path on the route props on Link not the file name. Can anyone help?