Skip to content

Commit 7cf63d3

Browse files
committed
Update 404.html
1 parent 550de71 commit 7cf63d3

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/static/404.html

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
<meta charset="utf-8">
55
<title>Greater Toronto Multiple Alarm Association</title>
66
<script>
7-
// ====================================================================================================================
8-
// This text is to simply ensure the 404.html file is larger than 512 bytes, otherwise Internet Explorer will ignore it.
9-
// Thank you Internet Exploder for requiring such a fantastic workaround in order to work properly
10-
// ====================================================================================================================
11-
sessionStorage.redirect = location.href;
7+
// Redirect all 404s to index.html, preserving the path
8+
var redirectTo = '/index.html' + window.location.search + window.location.hash;
9+
window.location.replace(redirectTo);
1210
</script>
13-
<meta http-equiv="refresh" content="0;URL='/'">
1411
</head>
12+
13+
<body>
14+
<h1>Redirecting...</h1>
15+
</body>
1516
</html>

0 commit comments

Comments
 (0)