Skip to content

Commit fc12f02

Browse files
authored
Use absolute paths for 404 (#283)
1 parent 6190af6 commit fc12f02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/404-redirect.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<title>Not found</title>
66
<script>
77
(function () {
8-
const url = new URL('../index.html', window.location.href);
8+
const url = new URL('/lab/index.html', window.location.href);
99
const params = new URLSearchParams(window.location.search);
1010
params.set('tab', '404');
1111
url.search = params.toString();
@@ -14,7 +14,7 @@
1414
})();
1515
</script>
1616
<noscript>
17-
<meta http-equiv="refresh" content="0; url=../index.html?tab=404" />
17+
<meta http-equiv="refresh" content="0; url=/lab/index.html?tab=404" />
1818
</noscript>
1919
</head>
2020
<body></body>

0 commit comments

Comments
 (0)