summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'index.html')
-rw-r--r--index.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/index.html b/index.html
index 4369b6e..5e3fc53 100644
--- a/index.html
+++ b/index.html
@@ -5,6 +5,12 @@
<title>pugl</title>
<meta charset="utf-8">
<meta content="width=device-width,initial-scale=1" name="viewport">
+ <script>
+ // make sure we have the right base for URLs
+ if (!location.href.endsWith('.html') && !location.href.endsWith('/')) {
+ location.href = location.href + '/';
+ }
+ </script>
<link rel="icon" href="favicon.ico">
<link rel="stylesheet" href="style.css">
</head>