Skip to content

Commit

Permalink
Use relative paths for resources again
Browse files Browse the repository at this point in the history
  • Loading branch information
cdauth committed Jul 5, 2024
1 parent 9726605 commit f71d4c0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
20 changes: 10 additions & 10 deletions frontend/src/map/map.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
<% } -%>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="fmConfig" content="<%=JSON.stringify(config)%>" />
<link rel="icon" href="<%=paths.base%>static/favicon.svg">
<link rel="mask-icon" href="<%=paths.base%>static/favicon.svg" color="#00272a">
<link rel="apple-touch-icon" href="<%=paths.base%>static/app-180.png">
<link rel="manifest" href="<%=paths.base%>manifest.json">
<link rel="search" type="application/opensearchdescription+xml" title="<%=appName%>" href="<%=paths.base%>opensearch.xml">
<link rel="alternate" type="application/json+oembed" href="<%=paths.base%>oembed?url=<%=encodeURIComponent(url)%>&amp;format=json" title="<%=normalizePageTitle(mapData ? normalizeMapName(mapData.name) : undefined, appName)%>" />
<link rel="icon" href=".<%=paths.base%>static/favicon.svg">
<link rel="mask-icon" href=".<%=paths.base%>static/favicon.svg" color="#00272a">
<link rel="apple-touch-icon" href=".<%=paths.base%>static/app-180.png">
<link rel="manifest" href=".<%=paths.base%>manifest.json">
<link rel="search" type="application/opensearchdescription+xml" title="<%=appName%>" href=".<%=paths.base%>opensearch.xml">
<link rel="alternate" type="application/json+oembed" href=".<%=paths.base%>oembed?url=<%=encodeURIComponent(url)%>&amp;format=json" title="<%=normalizePageTitle(mapData ? normalizeMapName(mapData.name) : undefined, appName)%>" />
<link rel="iframely geolocation web-share resizable" href="<%=url%>">
<style type="text/css">
html, body, #app {
Expand Down Expand Up @@ -64,17 +64,17 @@
</style>
<style type="text/css">
<% for (const path of styles) { -%>
@import url("<%=paths.base%><%=path%>");
@import url(".<%=paths.base%><%=path%>");
<% } -%>
<% if (hasCustomCssFile) { -%>
@import url("<%=paths.base%>custom.css");
@import url(".<%=paths.base%>custom.css");
<% } -%>
</style>
<% for (const path of scripts) { -%>
<script type="module" src="<%=paths.base%><%=path%>"></script>
<script type="module" src=".<%=paths.base%><%=path%>"></script>
<% } -%>
<% for (const path of preloadScripts) { -%>
<link rel="modulepreload" href="<%=paths.base%><%=path%>"/>
<link rel="modulepreload" href=".<%=paths.base%><%=path%>"/>
<% } -%>
</head>
<body>
Expand Down
18 changes: 9 additions & 9 deletions frontend/src/table/table.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,26 @@
<%
}
-%>
<link rel="icon" href="<%=paths.base%>static/favicon.svg">
<link rel="mask-icon" href="<%=paths.base%>favicon.svg" color="#00272a">
<link rel="apple-touch-icon" href="<%=paths.base%>static/app-180.png">
<link rel="manifest" href="<%=paths.base%>static/manifest.json">
<link rel="alternate" type="application/json+oembed" href="<%=paths.base%>oembed?url=<%=encodeURIComponent(url)%>&amp;format=json" title="<%=normalizePageTitle(normalizeMapName(mapData.name), appName)%>" />
<link rel="icon" href=".<%=paths.base%>static/favicon.svg">
<link rel="mask-icon" href=".<%=paths.base%>favicon.svg" color="#00272a">
<link rel="apple-touch-icon" href=".<%=paths.base%>static/app-180.png">
<link rel="manifest" href=".<%=paths.base%>static/manifest.json">
<link rel="alternate" type="application/json+oembed" href=".<%=paths.base%>oembed?url=<%=encodeURIComponent(url)%>&amp;format=json" title="<%=normalizePageTitle(normalizeMapName(mapData.name), appName)%>" />
<link rel="iframely resizable" href="<%=url%>">

<style type="text/css">
<% for (const path of styles) { -%>
@import url("<%=paths.base%><%=path%>");
@import url(".<%=paths.base%><%=path%>");
<% } -%>
<% if (hasCustomCssFile) { -%>
@import url("<%=paths.base%>custom.css");
@import url(".<%=paths.base%>custom.css");
<% } -%>
</style>
<% for (const path of scripts) { -%>
<script type="module" src="<%=paths.base%><%=path%>"></script>
<script type="module" src=".<%=paths.base%><%=path%>"></script>
<% } -%>
<% for (const path of preloadScripts) { -%>
<link rel="modulepreload" href="<%=paths.base%><%=path%>"/>
<link rel="modulepreload" href=".<%=paths.base%><%=path%>"/>
<% } -%>
</head>
<body>
Expand Down

0 comments on commit f71d4c0

Please sign in to comment.