From b5865bf699ee6b8b0cb44d6697ce00199dc90fd0 Mon Sep 17 00:00:00 2001 From: Matchu Date: Thu, 21 Oct 2021 11:56:55 -0700 Subject: [PATCH] Fix email search redirect Oh oops, I missed this path change when I changed the route to `/user/:id/lists`! This caused searching by email to redirect to the homepage, but with a valid URL in the address bar; and refreshing the page would hit the redirect defined in `vercel.json`, redirect to the new route, and load the correct page. Fixed! --- src/app/UserItemListsIndexPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/UserItemListsIndexPage.js b/src/app/UserItemListsIndexPage.js index 9d694ff..9a10aee 100644 --- a/src/app/UserItemListsIndexPage.js +++ b/src/app/UserItemListsIndexPage.js @@ -375,7 +375,7 @@ function UserSearchForm() { return; } - history.push(`/user/${user.id}/items`); + history.push(`/user/${user.id}/lists`); }, onError: (error) => { console.error(error);