Skip to content

Commit b93b03c

Browse files
committed
Fix 404.html
1 parent 00c4b19 commit b93b03c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

404.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
<!doctype html>
22
<html>
33
<head>
4-
<meta http-equiv="refresh" content="0; url=/" />
54
<script type="text/javascript">
6-
window.location.href = "/";
5+
if (window.location.pathname !== "/" && !window.location.pathname.includes(".")) {
6+
window.location.replace("/");
7+
}
78
</script>
89
</head>
910
<body>
10-
<p>If you are not redirected, <a href="/">click here</a>.</p>
11+
<p>Page not found. <a href="/">Click here</a>.</p>
1112
</body>
1213
</html>

0 commit comments

Comments
 (0)