forked from bldrs-ai/Share
-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.html
27 lines (26 loc) · 968 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>BLDRS - Redirect</title>
<!-- Start Single Page Apps for GitHub Pages -->
<script type="text/javascript">
// Single Page Apps for GitHub Pages
// MIT License
// https://github.com/rafgraph/spa-github-pages
// This page needs to be > 512 bytes to work for IE. Currently 968.
var pathSegmentsToKeep = window.location.pathname.startsWith('/Share') ? 1 : 0;
var l = window.location;
l.replace(
l.protocol + '//' + l.hostname + (l.port ? ':' + l.port : '') +
l.pathname.split('/').slice(0, 1 + pathSegmentsToKeep).join('/') + '/?/' +
l.pathname.slice(1).split('/').slice(pathSegmentsToKeep).join('/').replace(/&/g, '~and~') +
(l.search ? '&' + l.search.slice(1).replace(/&/g, '~and~') : '') +
l.hash
);
</script>
<!-- End Single Page Apps for GitHub Pages -->
</head>
<body>
</body>
</html>