forked from docker/docker-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
33 lines (32 loc) · 1.04 KB
/
404.html
File metadata and controls
33 lines (32 loc) · 1.04 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Redirecting – cagent docs</title>
<script>
// GitHub Pages serves this page for any URL that doesn't match a real file.
// We redirect path-based URLs to the hash-based SPA router.
//
// Examples:
// /concepts/agents → /#concepts/agents
// /features/rag.html → /#features/rag
// /getting-started/ → /#getting-started/
// / → /#home
(function () {
var path = window.location.pathname
.replace(/^\//, '') // strip leading slash
.replace(/\.html$/, '') // strip .html extension
.replace(/\/$/, ''); // strip trailing slash
var hash = path || 'home';
var search = window.location.search || '';
window.location.replace('/' + search + '#' + hash);
})();
</script>
<noscript>
<meta http-equiv="refresh" content="0;url=/">
</noscript>
</head>
<body>
<p>Redirecting to <a href="/">cagent documentation</a>…</p>
</body>
</html>