-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
20 lines (20 loc) · 741 Bytes
/
404.html
File metadata and controls
20 lines (20 loc) · 741 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>CodeKokeshi</title>
<script defer src="https://cloud.umami.is/script.js" data-website-id="84641eae-f0c5-468b-8b48-f9226d664d2f"></script>
<script>
// GitHub Pages SPA routing trick.
// When GitHub Pages serves this 404.html for a path like /mods,
// we store the path in sessionStorage and redirect to the root.
// The root page reads sessionStorage and restores the URL.
var path = window.location.pathname.slice(1); // strip leading /
if (path && path !== 'index.html') {
sessionStorage.setItem('spa-redirect', path);
}
window.location.replace('https://codekokeshi.github.io/');
</script>
</head>
<body></body>
</html>