From a30ce76b0c7c5205c6be0b6abc92974534763cef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Sun, 4 Dec 2016 19:14:22 +0100 Subject: [PATCH] Fix // when no base given --- lib/app/server.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/app/server.js b/lib/app/server.js index 76dbf8ae40..5e4af2e53b 100644 --- a/lib/app/server.js +++ b/lib/app/server.js @@ -11,7 +11,9 @@ const isDev = <%= isDev %> const _app = new Vue(app) // Fix issue from vue-router Abstract mode with base (used for server-side rendering) +<% if (router.base !== '/') { %> router.history.base = '<%= router.base %>' +<% } %> // This exported function will be called by `bundleRenderer`. // This is where we perform data-prefetching to determine the