Home

Issue: 712

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

[issue link]

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 .

This question is available on Nuxt.js community (#c606)