mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-24 20:14:35 -04:00
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>
This commit is contained in:
parent
313eb74ed6
commit
23c7b5b0a6
9 changed files with 10 additions and 6 deletions
|
@ -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">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue