-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Addition of PostHog 404 handler for additional insights.
- Loading branch information
Showing
2 changed files
with
59 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,63 @@ | ||
// 404.js | ||
|
||
import Link from "next/link"; | ||
import { sendPageNotFoundError } from "utils/posthog"; | ||
import { useEffect } from "react"; | ||
import SiteHeader from "components/Header"; | ||
import Footer from "layouts/DocsPage/Footer"; | ||
|
||
export default function FourOhFour() { | ||
useEffect(() => { | ||
void sendPageNotFoundError(); // Report Error to PostHog for tracking | ||
}, []); | ||
|
||
return ( | ||
<div style={{ textAlign: 'center', padding: '50px' }}> | ||
<h1>404 Page Not Found</h1> | ||
<p>Sorry, we couldn't find that page</p> | ||
<p>We couldn't find the page you were looking for.</p> | ||
<h2>Pages you may find useful</h2> | ||
<ul style={{ listStyleType: 'none', padding: 0 }}> | ||
<li><a href="/">Home Page</a></li> | ||
<li><Link href="/about">About Us</Link></li> | ||
<li><Link href="/blog">Blog</Link></li> | ||
<li><Link href="/Support">Customer Support</Link></li> | ||
<li><Link href="/">Documentation</Link></li> | ||
<li><Link href="installation">Installation</Link></li> | ||
<li><Link href="server-access">Teleport Server Access</Link></li> | ||
<li><Link href="kubernetes-access">Teleport Kubernetes Access</Link></li> | ||
<li><Link href="database-access">Teleport Database Access</Link></li> | ||
<li><Link href="desktop-access">Teleport Desktop Access</Link></li> | ||
<li><Link href="application-access">Teleport Application Access</Link></li> | ||
</ul> | ||
<div> | ||
<SiteHeader /> | ||
<div style={{ textAlign: "center", padding: "50px" }}> | ||
<h1>404 Page Not Found</h1> | ||
<p>Sorry, we couldn't find that page</p> | ||
<p> | ||
Go back to Documentation <Link href="/">home</Link>? | ||
</p> | ||
<h2>Other pages you may find useful</h2> | ||
<ul style={{ listStyleType: "none", padding: 0 }}> | ||
<li> | ||
<a href="/">Home Page</a> | ||
</li> | ||
<li> | ||
<Link href="/about">About Us</Link> | ||
</li> | ||
<li> | ||
<Link href="/blog">Blog</Link> | ||
</li> | ||
<li> | ||
<Link href="/Support">Customer Support</Link> | ||
</li> | ||
<li> | ||
<Link href="/">Documentation</Link> | ||
</li> | ||
<li> | ||
<Link href="installation">Installation</Link> | ||
</li> | ||
<li> | ||
<Link href="server-access">Teleport Server Access</Link> | ||
</li> | ||
<li> | ||
<Link href="kubernetes-access">Teleport Kubernetes Access</Link> | ||
</li> | ||
<li> | ||
<Link href="database-access">Teleport Database Access</Link> | ||
</li> | ||
<li> | ||
<Link href="desktop-access">Teleport Desktop Access</Link> | ||
</li> | ||
<li> | ||
<Link href="application-access">Teleport Application Access</Link> | ||
</li> | ||
</ul> | ||
</div> | ||
<Footer section={true}></Footer> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters