From b3df9352c2d4aeb50b5d55a9c9256dc25d279bb2 Mon Sep 17 00:00:00 2001 From: Anna Daccache Date: Tue, 13 Apr 2021 16:39:02 -0700 Subject: [PATCH] Update NavigationComponent.js When I try to logout this is the error I get rather than a redirect: "Cannot GET /auth/login" --- frontend/src/NavigationComponent.js | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/NavigationComponent.js b/frontend/src/NavigationComponent.js index 1350a5d..57fa5ac 100644 --- a/frontend/src/NavigationComponent.js +++ b/frontend/src/NavigationComponent.js @@ -13,6 +13,7 @@ export default function NavigationComponent(props) { } document.cookie = "_id=; expires=Thu, 01 Jan 1970 00:00:00 GMT"; window.location = "/auth/login"; + /* this doesn't redirect to the login page, I get an error instead*/ } useEffect(() => {