diff --git a/packages/app/src/app/(default)/login/MonCompteProLogin.tsx b/packages/app/src/app/(default)/login/MonCompteProLogin.tsx index b1843f6a8..db51d04dd 100644 --- a/packages/app/src/app/(default)/login/MonCompteProLogin.tsx +++ b/packages/app/src/app/(default)/login/MonCompteProLogin.tsx @@ -12,7 +12,8 @@ export const MonCompteProLogin = ({ callbackUrl }: MonCompteProLoginProps) => ( { e.preventDefault(); - signIn("moncomptepro", { callbackUrl, redirect: true }); + window.sessionStorage.setItem("redirectUrl", window.location.href); + signIn("moncomptepro", { redirect: false }); }} />