@@ -9,56 +9,8 @@ import React from 'react';
9
9
import Translate , { translate } from '@docusaurus/Translate' ;
10
10
import { PageMetadata } from '@docusaurus/theme-common' ;
11
11
import Layout from '@theme/Layout' ;
12
+ import { Redirect } from '@docusaurus/router' ;
12
13
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