From f20408ebd94e2bc527c3941c5f78ace7afe9e94a Mon Sep 17 00:00:00 2001 From: Marco Pedone Date: Thu, 19 Feb 2026 10:52:05 +0100 Subject: [PATCH] fix: update redirect path after successful account creation in AcceptInvitePage --- apps/infoalloggi/src/pages/auth/accetta-invito/[token].tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/infoalloggi/src/pages/auth/accetta-invito/[token].tsx b/apps/infoalloggi/src/pages/auth/accetta-invito/[token].tsx index d00c46f..ca78573 100644 --- a/apps/infoalloggi/src/pages/auth/accetta-invito/[token].tsx +++ b/apps/infoalloggi/src/pages/auth/accetta-invito/[token].tsx @@ -88,7 +88,7 @@ const AcceptInvitePage: NextPageWithLayout = ({ api.invite.acceptInvite.useMutation({ onSuccess: async () => { toast.success("Account creato! Effettua il login."); - await router.push("/login"); + await router.push("/login?redirect=/area-riservata/dashboard"); }, onError: (error) => { toast.error(error.message);