hendy0817
hendy0817

Reputation: 1079

nuxt link takes two clicks to correct path

I'm using Nuxt / Vue and in my site header router links. The problem I am seeing is when I click the router link to a path:

<nuxt-link to="/product-innovation/type">
  <span class="link-brdr">Product</span>
</nuxt-link>

the route changes to the path : /product-innovation and not /product-innovation/type

if I click the nuxt link a second time it then will navigate to the correct page route.

Upvotes: 1

Views: 1292

Answers (1)

kissu
kissu

Reputation: 46676

At the end, the issue was about a previous developer who had some strange way of using router.push.

OP was able to solve it by himself thanks to some tips (mainly vue devtools, routing tab)!

Upvotes: 1

Related Questions