From 994a55cc0a2798f4c351530f112167d53b1e7a60 Mon Sep 17 00:00:00 2001 From: Kim <56411016+kimsauce@users.noreply.github.com> Date: Sat, 1 Oct 2022 15:29:13 -0700 Subject: [PATCH] Route 404 to home (#402) * AWS Cost explorer * Word list, glossary, URL fixes, missing descriptions * dashboards metadata * Broken links from initial migration * fix broken links * Moved Sensu + various migration edits * Beta docs guidance and link fixes * Beta badge on homepage * links, Search docs consolidation * links * links * Contributor guidelines, IA consolidation, missing metadata * Update .clabot * fixes * links * links * Added all Release Notes RSS files for storage * tagline edit per Christian B. * Formatting, Manage section metadata * Formatting, Manage section metadata * Manage Data metadata and IA streamlining * Update manage.md * more content * content, homepage * clabot - new contributor * .clabot contributors * .clabot contributors * merge w main * Consolidation * 404 -> Home redirect * Route 404 to homepage (temporarily) * rm 404 redirect from cid-redirects.json * Route 404 to homepage * Update docusaurus.config.js * Update docusaurus.config.js Co-authored-by: Stacy Kornluebke --- src/theme/NotFound.js | 56 ++++--------------------------------------- 1 file changed, 4 insertions(+), 52 deletions(-) diff --git a/src/theme/NotFound.js b/src/theme/NotFound.js index c0271abbfa..9c93108b76 100644 --- a/src/theme/NotFound.js +++ b/src/theme/NotFound.js @@ -9,56 +9,8 @@ import React from 'react'; import Translate, {translate} from '@docusaurus/Translate'; import {PageMetadata} from '@docusaurus/theme-common'; import Layout from '@theme/Layout'; +import {Redirect} from '@docusaurus/router'; -export default function NotFound(): JSX.Element { - return ( - <> - - -
-
-
-

- - 404 - Page Not Found - -

-

- - Whoops! We can't find what you're looking for. - -

-

- Sumo Logic 404 image - -

-

- - -

-

- - -

-
-
-
-
- - ); -} +export default function NotFound() { + return ; +};