We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9203847 commit 081a9efCopy full SHA for 081a9ef
src/theme/NotFound/Content/index.js
@@ -1,9 +1,19 @@
1
-import React from "react";
2
-import {PageMetadata} from "@docusaurus/theme-common";
+import React, { useEffect } from "react";
+import { PageMetadata } from "@docusaurus/theme-common";
3
import Link from "@docusaurus/Link";
4
import useBaseUrl from "@docusaurus/useBaseUrl";
5
6
+
7
export default function Index() {
8
+ useEffect(() => {
9
+ const timer = setTimeout(() => {
10
+ window.location.href = "/docs/";
11
+ }, 2000);
12
13
14
+ return () => clearTimeout(timer);
15
+ }, []);
16
17
return (
18
<>
19
<PageMetadata title="Page Not Found" />
@@ -81,7 +91,7 @@ export default function Index() {
81
91
</Link>
82
92
</div>
83
93
84
-
94
85
95
86
96
</main>
87
97
</>
0 commit comments