Add base only when router.base defined

This commit is contained in:
Sébastien Chopin 2017-01-20 12:42:05 +01:00
parent 75a81430a4
commit 0f6ccd595d

View File

@ -7,7 +7,7 @@
<%= m.style.text() %> <%= m.style.text() %>
<%= m.script.text() %> <%= m.script.text() %>
<%= m.noscript.text() %> <%= m.noscript.text() %>
<base href="<%= baseUrl %>"> <% if (baseUrl !== '/') { %><base href="<%= baseUrl %>"><% } %>
<% if (!dev) { %><link rel="stylesheet" href="<%= files.css %>"><% } %> <% if (!dev) { %><link rel="stylesheet" href="<%= files.css %>"><% } %>
</head> </head>
<body <%= m.bodyAttrs.text() %>> <body <%= m.bodyAttrs.text() %>>