Skip to content

Commit

Permalink
fix: mcp redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
jonat75 committed Jul 29, 2024
1 parent 6ddb586 commit 5bf52f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/app/src/app/(default)/login/MonCompteProLogin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export const MonCompteProLogin = ({ callbackUrl }: MonCompteProLoginProps) => (
<MonCompteProButton
onClick={e => {
e.preventDefault();
signIn("moncomptepro", { callbackUrl, redirect: true });
window.sessionStorage.setItem("redirectUrl", window.location.href);
signIn("moncomptepro", { redirect: false });
}}
/>
<Link href="/aide-moncomptepro" target="_blank">
Expand Down

0 comments on commit 5bf52f1

Please sign in to comment.