Skip to content

Commit 24e9486

Browse files
authored
CXX-3195 add 404 page with automatic redirection (#1302)
1 parent 3412658 commit 24e9486

File tree

1 file changed

+79
-0
lines changed

1 file changed

+79
-0
lines changed

404.html

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="utf-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
8+
<link rel="shortcut icon" href="https://mongocxx.org/img/favicon.png">
9+
10+
<title>Page Not Found</title>
11+
12+
<link rel="stylesheet" href="https://mongocxx.org/lib/bootstrap.css" type="text/css" />
13+
<link rel="stylesheet" href="https://mongocxx.org/lib/font-awesome/css/font-awesome.min.css" type="text/css" />
14+
<link rel="stylesheet" href="https://mongocxx.org/css/mongodb-docs.css" type="text/css" />
15+
<link rel="stylesheet" href="https://mongocxx.org/css/overrides.css" type="text/css" />
16+
<link rel="stylesheet" href="https://mongocxx.org/lib/highlight/styles/idea.css" />
17+
18+
<link rel="canonical" href="https://mongocxx.org/404.html" />
19+
<script type="text/javascript">
20+
var milliseconds = 5000;
21+
22+
function redirect() {
23+
if (window.location.pathname.startsWith("/api/")) {
24+
// Redirect to current API homepage.
25+
window.location.assign(window.location.href.split('/api/')[0] + '/api/current')
26+
} else {
27+
// Redirect to website homepage.
28+
window.location.assign(window.location.origin)
29+
}
30+
}
31+
32+
setTimeout(redirect, milliseconds);
33+
</script>
34+
</head>
35+
36+
<body>
37+
<p>This page could not be found. Automatically redirecting in a few seconds...</p>
38+
39+
<p><a href="https://mongocxx.org/">Click here</a> if automatic redirection fails.</p>
40+
41+
<script type="text/javascript" src="https://mongocxx.org/js/jquery.js"></script>
42+
<script type="text/javascript" src="https://mongocxx.org/lib/bootstrap.js"></script>
43+
<script type="text/javascript" src="https://mongocxx.org/js/navbar.js"></script>
44+
<script type="text/javascript" src="https://mongocxx.org/lib/highlight/highlight.pack.js"></script>
45+
<script type="text/javascript" src="https://mongocxx.org/js/scripts.js"></script>
46+
47+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-JQHP" height="0" width="0"
48+
style="display:none;visibility:hidden"></iframe></noscript>
49+
<script>(function (w, d, s, l, i) {
50+
w[l] = w[l] || []; w[l].push(
51+
{ 'gtm.start': new Date().getTime(), event: 'gtm.js' }
52+
); var f = d.getElementsByTagName(s)[0],
53+
j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src =
54+
'//www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f);
55+
})(window, document, 'script', 'dataLayer', 'GTM-JQHP');</script>
56+
<script type="text/javascript">
57+
var _elqQ = _elqQ || [];
58+
_elqQ.push(['elqSetSiteId', '413370795']);
59+
_elqQ.push(['elqTrackPageView']);
60+
(function () {
61+
function async_load() { var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = '//img03.en25.com/i/elqCfg.min.js'; var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x); }
62+
if (window.addEventListener) window.addEventListener('DOMContentLoaded', async_load, false);
63+
else if (window.attachEvent) window.attachEvent('onload', async_load);
64+
})();
65+
</script>
66+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-56KD6L3MDX"></script>
67+
<script>
68+
window.dataLayer = window.dataLayer || [];
69+
function gtag() { dataLayer.push(arguments); }
70+
gtag('js', new Date());
71+
gtag('config', 'G-56KD6L3MDX');
72+
</script>
73+
<script type="text/javascript">
74+
!function (e, t, r, n, a) { if (!e[a]) { for (var i = e[a] = [], s = 0; s < r.length; s++) { var c = r[s]; i[c] = i[c] || function (e) { return function () { var t = Array.prototype.slice.call(arguments); i.push([e, t]) } }(c) } i.SNIPPET_VERSION = "1.0.1"; var o = t.createElement("script"); o.type = "text/javascript", o.async = !0, o.src = "https://d2yyd1h5u9mauk.cloudfront.net/integrations/web/v1/library/" + n + "/" + a + ".js"; var l = t.getElementsByTagName("script")[0]; l.parentNode.insertBefore(o, l) } }(window, document, ["survey", "reset", "config", "init", "set", "get", "event", "identify", "track", "page", "screen", "group", "alias"], "Dk30CC86ba0nATlK", "delighted");
75+
delighted.survey();
76+
</script>
77+
</body>
78+
79+
</html>

0 commit comments

Comments
 (0)