diff --git a/src/theme/NotFound.js b/src/theme/NotFound.js new file mode 100644 index 00000000..bc626c0f --- /dev/null +++ b/src/theme/NotFound.js @@ -0,0 +1,13 @@ +import React from "react" +import NotFound from "@theme-original/NotFound" +import { useEffect } from "react" + +export default function NotFoundWrapper(props) { + useEffect(() => { + if (location.href.includes("/docs/")) { + location.href = location.href.replace("/docs/", "/") + } + }, []) + + return +}