Skip to content

Commit

Permalink
Route 404 to home (#402)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
kimsauce and Stacy Kornluebke authored Oct 1, 2022
1 parent d662075 commit 994a55c
Showing 1 changed file with 4 additions and 52 deletions.
56 changes: 4 additions & 52 deletions src/theme/NotFound.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<>
<PageMetadata
title={translate({
id: 'theme.NotFound.title',
message: 'Page Not Found',
})}
/>
<Layout>
<main className="container margin-vert--xl">
<div className="row">
<div className="col col--6 col--offset-3">
<h1 align="center" className="hero__title">
<Translate
id="theme.NotFound.title"
description="The title of the 404 page">
404 - Page Not Found
</Translate>
</h1>
<p align="center">
<Translate
id="theme.NotFound.p1"
description="The first paragraph of the 404 page">
Whoops! We can't find what you're looking for.
</Translate>
</p>
<p align="center">
<img class="svg" src="/img/sumo-404.svg" alt="Sumo Logic 404 image" width="250">
</img>
</p>
<p align="center">
<button className="backtohome-404"
description="Back to Sumo Docs homepage">
<a href="/">Back to home</a>
</button>
<button className="backtohome-404"
description="Open GitHub Issue">
<a href="https://github.com/SumoLogic/sumologic-documentation/issues/new/choose">Let us know</a>
</button>
</p>
<p align="center">
<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>

</p>
</div>
</div>
</main>
</Layout>
</>
);
}
export default function NotFound() {
return <Redirect to="/" />;
};

0 comments on commit 994a55c

Please sign in to comment.