fix: if mounted on a subpath, ensure URL has trailing /
Signed-off-by: Michael Nutt <michael@nuttnet.net>
This commit is contained in:
parent
8b8109d500
commit
021b1b38fd
1 changed files with 4 additions and 0 deletions
|
@ -6,6 +6,10 @@
|
||||||
<title>TileServer GL - Server for vector and raster maps with GL styles</title>
|
<title>TileServer GL - Server for vector and raster maps with GL styles</title>
|
||||||
<link rel="stylesheet" type="text/css" href="./assets/index.css" />
|
<link rel="stylesheet" type="text/css" href="./assets/index.css" />
|
||||||
<script>
|
<script>
|
||||||
|
if (!document.location.pathname.endsWith('/')) {
|
||||||
|
document.location += "/";
|
||||||
|
}
|
||||||
|
|
||||||
function toggle_xyz(id) {
|
function toggle_xyz(id) {
|
||||||
var el = document.getElementById(id);
|
var el = document.getElementById(id);
|
||||||
var s = el.style;
|
var s = el.style;
|
||||||
|
|
Loading…
Reference in a new issue