fix: if mounted on a subpath, ensure URL has trailing /

Signed-off-by: Michael Nutt <michael@nuttnet.net>
This commit is contained in:
Michael Nutt 2023-01-19 13:58:50 -05:00
parent 8b8109d500
commit 021b1b38fd

View file

@ -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;