-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path404.html
More file actions
35 lines (32 loc) · 826 Bytes
/
404.html
File metadata and controls
35 lines (32 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
permalink: 404.html
layout: default
---
<style>
main {
margin: 0 auto;
text-align: center;
grid-column: full;
}
h1 {
font-size: 4em;
margin-bottom: 0;
}
p {
margin: 0;
}
</style>
<main id="content">
<h1>404</h1>
<p>The requested page could not be found</p>
</main>
<script type="module">
// URLs on the old site started with /en-us/ which isn't a valid locale;
// we'll redirect these to the correct /en-US/ so that old links don't break.
if (window.location.pathname.startsWith("/en-us/")) {
window.location.replace(window.location.pathname.replace("/en-us/", "/en-US/"));
} else if (window.location.pathname.startsWith("/documentation/")
|| window.location.pathname.startsWith("/screencasts/")) {
window.location.replace('/en-US' + window.location.pathname);
}
</script>