-
Notifications
You must be signed in to change notification settings - Fork 22
/
index.html
39 lines (29 loc) · 848 Bytes
/
index.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
32
33
34
35
36
37
38
39
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>SGHPA Demo</title>
<style type="text/css">
body:before {
content: attr(message);
}
</style>
</head>
<body>
<script>
(function(){
var redirect = sessionStorage.redirect;
delete sessionStorage.redirect;
if (redirect && redirect != location.href) {
history.replaceState(null, null, redirect);
// REMOVE THIS - just showing the redirect route in the UI
document.body.setAttribute('message', 'This page was redirected by 404.html, from the route: ' + redirect);
}
else {
// REMOVE THIS - just showing the redirect route in the UI
document.body.setAttribute('message', 'This page was loaded directly from the index.html file');
}
})();
</script>
</body>
</html>