I am working on some static pages using Nuxt.js (MPA). Whenever I run the generate command, all <nuxt-link> URLs start from root, i.e /. For example, my structure is:
pages
|
- index.vue
- policy.vue
And in index.vue I have linked policy page as:
<nuxt-link to="policy.html"> Policy </nuxt-link>
which results in /policy.html instead of policy.html.
/policy.html) or relative (policy.html) is not a valid prop fornuxt-linkcomponent, which is an alias forrouter-link. Instead, a path (without extension) or route name should be passed. See more inrouter-linkAPI reference