From 69ce93ec3e8e58038eb46dd1e596d7dfbb60f074 Mon Sep 17 00:00:00 2001 From: Marco Pedone Date: Fri, 27 Mar 2026 19:19:08 +0100 Subject: [PATCH] feat: update redirect after account creation to go directly to dashboard --- apps/infoalloggi/src/pages/auth/accetta-invito/[token].tsx | 3 ++- 1 file changed, 2 insertions(+), 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 28bf713..ba74e75 100644 --- a/apps/infoalloggi/src/pages/auth/accetta-invito/[token].tsx +++ b/apps/infoalloggi/src/pages/auth/accetta-invito/[token].tsx @@ -90,7 +90,8 @@ const AcceptInvitePage: NextPageWithLayout = ({ api.invite.acceptInvite.useMutation({ onSuccess: async () => { toast.success("Account creato! Effettua il login."); - await router.push("/login?redirect=/area-riservata/dashboard"); + await router.push("/area-riservata/dashboard"); + //await router.push("/login?redirect=/area-riservata/dashboard"); }, onError: (error) => { toast.error(error.message);