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!
This commit is contained in:
Emi Matchu 2021-10-21 11:56:55 -07:00
parent eb2eb241ba
commit b5865bf699

View file

@ -375,7 +375,7 @@ function UserSearchForm() {
return;
}
history.push(`/user/${user.id}/items`);
history.push(`/user/${user.id}/lists`);
},
onError: (error) => {
console.error(error);