diff --git a/website/src/theme/NotFound.tsx b/website/src/theme/NotFound.tsx index 2dcfdcb2c57f..03222be3e5d9 100644 --- a/website/src/theme/NotFound.tsx +++ b/website/src/theme/NotFound.tsx @@ -10,26 +10,26 @@ import Layout from '@theme/Layout'; import Feedback from '../pages/feedback'; function NotFound({location}: {location: {pathname: string}}): JSX.Element { - if (/^\/feedback/.test(location.pathname)) { - return ; - } - - return ( - -
-
-
-

Page Not Found

-

We could not find what you were looking for.

-

- Please contact the owner of the site that linked you to the - original URL and let them know their link is broken. -

+ if (/^\/\bfeedback\b/.test(location.pathname)) { + return + } else { + return ( + +
+
+
+

Page Not Found

+

We could not find what you were looking for.

+

+ Please contact the owner of the site that linked you to the + original URL and let them know their link is broken. +

+
-
- - ); + + ); + } } export default NotFound;