Skip to content

Commit 7a32d49

Browse files
committed
adjusted 494.html
1 parent 197575d commit 7a32d49

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

public/404.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8">
5-
<meta http-equiv="refresh" content="0; url=/#/">
5+
<meta http-equiv="refresh" content="0; url=/#/" />
66
<title>Redirecting...</title>
77
</head>
88
<body>
99
<script>
10-
window.location.replace("/#/" + window.location.pathname.substring(1));
10+
var path = window.location.pathname + window.location.search + window.location.hash;
11+
if (path.startsWith("/")) {
12+
path = path.substring(1); // Remove leading "/"
13+
}
14+
window.location.replace("/#/" + path);
1115
</script>
1216
</body>
1317
</html>

0 commit comments

Comments
 (0)