Skip to content

Commit ae49ff9

Browse files
fix: redirect non resolving page (#601)
Signed-off-by: Achanandhi-M <[email protected]> Co-authored-by: Neha Gupta <[email protected]>
1 parent e2ae012 commit ae49ff9

File tree

3 files changed

+42
-1
lines changed

3 files changed

+42
-1
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import React, {useEffect} from "react";
2+
import {PageMetadata} from "@docusaurus/theme-common";
3+
4+
export default function Index() {
5+
useEffect(() => {
6+
window.location.href = "/docs/";
7+
}, 2000);
8+
[];
9+
10+
return (
11+
<>
12+
<PageMetadata title="Redirecting..." />
13+
<main className="container margin-vert--xl">
14+
<div className="row">
15+
<div className="col col--6 col--offset-3">
16+
<h1 className="hero__title">Redirecting to home page...</h1>
17+
</div>
18+
</div>
19+
</main>
20+
</>
21+
);
22+
}

src/theme/NotFound/index.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import React from "react";
2+
import {translate} from "@docusaurus/Translate";
3+
import {PageMetadata} from "@docusaurus/theme-common";
4+
import Layout from "@theme/Layout";
5+
import NotFoundContent from "@theme/NotFound/Content";
6+
export default function Index() {
7+
const title = translate({
8+
id: "theme.NotFound.title",
9+
message: "Page Not Found",
10+
});
11+
return (
12+
<>
13+
<PageMetadata title={title} />
14+
<Layout>
15+
<NotFoundContent />
16+
</Layout>
17+
</>
18+
);
19+
}

versioned_sidebars/version-3.0.0-sidebars.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"collapsed": false,
2323
"items": [
2424
"running-keploy/review-and-improve-ai-generated-tests",
25-
"running-keploy/share-tests",
25+
"running-keploy/share-tests",
2626
"running-keploy/self-healing-ai-api-tests",
2727
"running-keploy/run-ai-generated-api-tests",
2828
"running-keploy/api-testing-cicd"

0 commit comments

Comments
 (0)