[Vuejs]-Unable to navigate page with inertia-link if route is dynamic

1👍

Found how to do this using :headers

 <inertia-link href="/endpoint" :headers="{ clothesCategory: endpoint}">end point</inertia-link>

2👍

You can simply follow this example:

<inertia-link :href="'/' + data.slug">Go To</inertia-link>

use the ":" (colon symbol) before "href". Then you can insert dynamic value into the link.

Leave a comment