diff --git a/src/Apps/Favorites/favoritesRoutes.tsx b/src/Apps/Favorites/favoritesRoutes.tsx index 819d1ce9c7b..babc1677d55 100644 --- a/src/Apps/Favorites/favoritesRoutes.tsx +++ b/src/Apps/Favorites/favoritesRoutes.tsx @@ -87,11 +87,6 @@ export const favoritesRoutes: RouteProps[] = [ onClientSideRender: () => { Alerts.preload() }, - onServerSideRender: ({ req, res }) => { - if (!req.user) { - res.redirect("/") - } - }, query: graphql` query favoritesRoutesAlertsAppEditQuery { me { diff --git a/src/Server/middleware/userRequiredMiddleware.ts b/src/Server/middleware/userRequiredMiddleware.ts index 8b0a649cfda..de4ed660be1 100644 --- a/src/Server/middleware/userRequiredMiddleware.ts +++ b/src/Server/middleware/userRequiredMiddleware.ts @@ -4,7 +4,7 @@ const USER_REQUIRED_ROUTES = [ "/notifications", "/orders(.*)", "/my-collection/artworks(.*)", - "/favorites/alerts", + "/favorites/alerts(.*)", "/settings/payments", "/settings/purchases(.*)", "/settings/shipping",