Nuxt Link to="" not valid html

87 views Asked by At

I have noticed that when running my pages through html validation it is flagged that my links have a to="[object Object] which is not valid HTML.

I am using Nuxt Links in Nuxt Vue, the to is used to provide the link in the code, but this is converted into a href while leaving this when compiled, which seems to serve no purpose:

<a href="/home" to="[object Object]">Home</a>

Is there a way to remove the to from links using Vue Nuxt?

0

There are 0 answers