From 48fe4a4d49c4747efd4dad67af63012a76060777 Mon Sep 17 00:00:00 2001 From: Gnanavel Premnath Date: Mon, 7 Jul 2025 16:01:44 -0400 Subject: [PATCH] chore: if no valid url, then redirect to base url --- src/theme/NotFound/Content/index.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/theme/NotFound/Content/index.js diff --git a/src/theme/NotFound/Content/index.js b/src/theme/NotFound/Content/index.js new file mode 100644 index 00000000..55c97187 --- /dev/null +++ b/src/theme/NotFound/Content/index.js @@ -0,0 +1,9 @@ +import { useEffect } from 'react'; + +export default function NotFoundContent() { + useEffect(() => { + window.location.replace('/docs/'); + }, []); + + return null; +}