I am currently working on developing static pages with Nuxt.js (MPA). After executing the generate
command, I noticed that all the URLs in the <nuxt-link>
tag start from the root directory, specifically /
. For instance, my project structure looks like this:
pages
|
- index.vue
- policy.vue
In my index.vue
file, I linked the policy page using:
<nuxt-link to="policy.html"> Policy </nuxt-link>
However, this setup results in the URL displaying as /policy.html
instead of just policy.html
.