From e118fcd4e19d2704a672112952c11ca01fcd38c4 Mon Sep 17 00:00:00 2001 From: Manuel Cepeda Date: Wed, 12 Aug 2020 05:43:52 -0400 Subject: [PATCH] fix(v2): website feedback page hydration bug (#3269) --- website/src/theme/NotFound.tsx | 36 +++++++++++++++++----------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/website/src/theme/NotFound.tsx b/website/src/theme/NotFound.tsx index 2dcfdcb2c5..03222be3e5 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;