-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path404.html
31 lines (27 loc) · 882 Bytes
/
404.html
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
<!-- 404 pages for github pages to redirect correctly -->
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>404 - Not Found</title>
<script type="text/javascript">
// Extract the pathname from the URL
var pathname = window.location.pathname;
// Redirect logic based on pathname
let playgroundPath = '/expo-audio-stream/playground/';
let docsPath = '/expo-audio-stream/docs/';
if (pathname.startsWith(playgroundPath)) {
window.location.href = playgroundPath;
} else if (pathname.startsWith(docsPath)) {
window.location.href = docsPath;
} else {
// Default redirect (e.g., to the home page)
window.location.href = '/expo-audio-stream/';
}
</script>
</head>
<body>
<h1>404 - Not Found</h1>
<p>Redirecting...</p>
</body>
</html>