Skip to content

Commit 994a55c

Browse files
kimsauceStacy Kornluebke
and
Stacy Kornluebke
authored
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 <[email protected]>
1 parent d662075 commit 994a55c

File tree

1 file changed

+4
-52
lines changed

1 file changed

+4
-52
lines changed

src/theme/NotFound.js

+4-52
Original file line numberDiff line numberDiff line change
@@ -9,56 +9,8 @@ import React from 'react';
99
import Translate, {translate} from '@docusaurus/Translate';
1010
import {PageMetadata} from '@docusaurus/theme-common';
1111
import Layout from '@theme/Layout';
12+
import {Redirect} from '@docusaurus/router';
1213

13-
export default function NotFound(): JSX.Element {
14-
return (
15-
<>
16-
<PageMetadata
17-
title={translate({
18-
id: 'theme.NotFound.title',
19-
message: 'Page Not Found',
20-
})}
21-
/>
22-
<Layout>
23-
<main className="container margin-vert--xl">
24-
<div className="row">
25-
<div className="col col--6 col--offset-3">
26-
<h1 align="center" className="hero__title">
27-
<Translate
28-
id="theme.NotFound.title"
29-
description="The title of the 404 page">
30-
404 - Page Not Found
31-
</Translate>
32-
</h1>
33-
<p align="center">
34-
<Translate
35-
id="theme.NotFound.p1"
36-
description="The first paragraph of the 404 page">
37-
Whoops! We can't find what you're looking for.
38-
</Translate>
39-
</p>
40-
<p align="center">
41-
<img class="svg" src="/img/sumo-404.svg" alt="Sumo Logic 404 image" width="250">
42-
</img>
43-
</p>
44-
<p align="center">
45-
<button className="backtohome-404"
46-
description="Back to Sumo Docs homepage">
47-
<a href="/">Back to home</a>
48-
</button>
49-
<button className="backtohome-404"
50-
description="Open GitHub Issue">
51-
<a href="https://github.com/SumoLogic/sumologic-documentation/issues/new/choose">Let us know</a>
52-
</button>
53-
</p>
54-
<p align="center">
55-
<a href="https://app.sitesearch360.com/demo/18891?auth=627bf5a32ba2ed7f1e7dbe02a13a5a5ae13c5c4d"> <img class="svg" src="https://upload.wikimedia.org/wikipedia/commons/c/c2/Blue_magnifying_glass_icon.svg" width="50"></img></a>
56-
57-
</p>
58-
</div>
59-
</div>
60-
</main>
61-
</Layout>
62-
</>
63-
);
64-
}
14+
export default function NotFound() {
15+
return <Redirect to="/" />;
16+
};

0 commit comments

Comments
 (0)