From 971372d76325c46ae339af7bba3d8415f8eac2b1 Mon Sep 17 00:00:00 2001 From: Sebastien Chopin Date: Tue, 16 May 2017 15:56:46 +0200 Subject: [PATCH] Add base href every time --- lib/render.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/render.js b/lib/render.js index 020f1cba45..4864a0f4d2 100644 --- a/lib/render.js +++ b/lib/render.js @@ -94,9 +94,7 @@ export async function renderRoute (url, context = {}) { } 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() - if (self.options.router.base !== '/') { - HEAD += `` - } + HEAD += `` HEAD += context.renderResourceHints() + context.renderStyles() APP += `` APP += context.renderScripts()