mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +00:00
Add base href every time
This commit is contained in:
parent
78d219c473
commit
971372d763
@ -94,9 +94,7 @@ export async function renderRoute (url, context = {}) {
|
|||||||
}
|
}
|
||||||
const m = context.meta.inject()
|
const m = context.meta.inject()
|
||||||
let HEAD = m.meta.text() + m.title.text() + m.link.text() + m.style.text() + m.script.text() + m.noscript.text()
|
let HEAD = m.meta.text() + m.title.text() + m.link.text() + m.style.text() + m.script.text() + m.noscript.text()
|
||||||
if (self.options.router.base !== '/') {
|
HEAD += `<base href="${self.options.router.base}">`
|
||||||
HEAD += `<base href="${self.options.router.base}">`
|
|
||||||
}
|
|
||||||
HEAD += context.renderResourceHints() + context.renderStyles()
|
HEAD += context.renderResourceHints() + context.renderStyles()
|
||||||
APP += `<script type="text/javascript">window.__NUXT__=${serialize(context.nuxt, { isJSON: true })}</script>`
|
APP += `<script type="text/javascript">window.__NUXT__=${serialize(context.nuxt, { isJSON: true })}</script>`
|
||||||
APP += context.renderScripts()
|
APP += context.renderScripts()
|
||||||
|
Loading…
Reference in New Issue
Block a user