Dev Helpers
← Back

Unknown route report link

Place this file at app/not-found.tsx in an App Router project.

Open this example in the interactive library

Source code

// app/not-found.tsx

import Link from "next/link";

export default function UnknownRouteReportLink() {
  return (
    <main>
      <h1>We couldn't find this page</h1>
      <Link href="/">Go home</Link>{" "}
      <a href="mailto:support@example.com?subject=Broken%20link">
        Report a broken link
      </a>
    </main>
  );
}