summaryrefslogtreecommitdiff
path: root/public/views/slide.ejs
diff options
context:
space:
mode:
authorEnrico Guiraud2019-12-19 18:00:51 +0100
committerEnrico Guiraud2019-12-20 12:03:16 +0100
commit23c7b5b0a6a4bb6ba79eb8ee61346de623f7aced (patch)
tree91f7f27f6a44754fb188646af1b65cdd0f05e6ad /public/views/slide.ejs
parent313eb74ed697c5260df9293b1aefe3695cf65a5a (diff)
Fix urlPath support, let CodiMD be served from a subpath correctly
Webpack now uses relative paths for resources linked from by static snippets. A templated <base> tag has been introduced in headers so app.js can set the base URL at runtime. Signed-off-by: Enrico Guiraud <enrico.guiraud@cern.ch>
Diffstat (limited to '')
-rw-r--r--public/views/slide.ejs1
1 files changed, 1 insertions, 0 deletions
diff --git a/public/views/slide.ejs b/public/views/slide.ejs
index 3331b85d..9fefe4b4 100644
--- a/public/views/slide.ejs
+++ b/public/views/slide.ejs
@@ -11,6 +11,7 @@
<% if(typeof description !== 'undefined' && description) { %>
<meta name="description" content="<%= description %>">
<% } %>
+ <base href="<%- serverURL %>/">
<title><%= title %></title>
<link rel="icon" type="image/png" href="<%- serverURL %>/favicon.png">
<link rel="apple-touch-icon" href="<%- serverURL %>/apple-touch-icon.png">