-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
21 lines (21 loc) · 737 Bytes
/
Copy path404.html
File metadata and controls
21 lines (21 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="robots" content="noindex, nofollow">
<title>Redirecting...</title>
<script>
// If the missing page was under /learnair/, send the user to the gate,
// preserving the originally requested filename as ?r= so they land on
// the right page after entering the password.
// We do NOT clear an existing token — a missing page is not an auth failure.
if (window.location.pathname.startsWith('/learnair/')) {
var filename = window.location.pathname.split('/').pop() || 'index.html';
window.location.href = '/learnair/gate.html?r=' + encodeURIComponent(filename);
} else {
window.location.href = '/';
}
</script>
</head>
<body></body>
</html>