Static GitHub Issues

[712] html miss <base> when router.base just only have a slash

prev: npm build error
next: ssr asyncData

When I just setting router.base with "/" the html element can't find <base> element It should have a<base href="/">

I tried use a simple project test vue-meta I just set base.href = '/' html work fine . screenshot_12

so , I thinks this belong nuxt.js issue . I tried find problem in nuxt.js source but can't find ....

I propose this issus that because I have a project , in dev test is need a sub folder . but production don't , so , my image url is like ./img/image.jpg so , if html miss base in head , that will break the image .

for now , if I change router.base to '/' , I need add <base href="/"> in app.html template front {{ HEAD }} everytime ... ummm... even I already write it in my CI/CD ...

maybe if can fix this issue will be best . thanks .

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c606">#c606</a>)</em></sub></div>