Skip to content

Commit c743e14

Browse files
authored
fix(seo): add title and noindex meta to 404 page (#7843)
1 parent a7fa39a commit c743e14

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/components/PageNotFound/PageNotFound.jsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { Helmet } from "react-helmet-async";
12
import { Link } from "react-router-dom";
23

34
// Styles
@@ -6,6 +7,10 @@ import "./PageNotFound.scss";
67
export default function PageNotFound() {
78
return (
89
<div className="page markdown">
10+
<Helmet>
11+
<title>Page Not Found | webpack</title>
12+
<meta name="robots" content="noindex,nofollow" />
13+
</Helmet>
914
<h1>Page Not Found</h1>
1015
<p>Oops! The page you are looking for has been removed or relocated.</p>
1116
<Link className="button" to="/">

0 commit comments

Comments
 (0)