diff --git a/src/theme/NotFound/index.js b/src/theme/NotFound/index.js index 408b443fc..db7188889 100644 --- a/src/theme/NotFound/index.js +++ b/src/theme/NotFound/index.js @@ -4,16 +4,18 @@ import {PageMetadata} from "@docusaurus/theme-common"; import Layout from "@theme/Layout"; import NotFoundContent from "@theme/NotFound/Content"; export default function Index() { - const title = translate({ - id: "theme.NotFound.title", - message: "Page Not Found", - }); + useEffect(() => { + // Redirect immediately without adding history entry + window.location.replace("/docs"); + }, []); + return ( <> - - - - + +
+

Redirecting…

+

You will be taken to the documentation shortly.

+
); }