Skip to content

Commit

Permalink
Fix // when no base given
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Dec 4, 2016
1 parent 4c33c3c commit a30ce76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/app/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a30ce76

Please sign in to comment.