From 1d9535e3ede326de91dbdc2868102db4b7542528 Mon Sep 17 00:00:00 2001 From: Ulysse Carion Date: Fri, 17 May 2024 12:54:35 -0700 Subject: [PATCH] InstantSetupPage: use replace: true for redirect --- src/pages/InstantSetupPage.tsx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/pages/InstantSetupPage.tsx b/src/pages/InstantSetupPage.tsx index 51afafc..b8883e3 100644 --- a/src/pages/InstantSetupPage.tsx +++ b/src/pages/InstantSetupPage.tsx @@ -30,10 +30,15 @@ export function InstantSetupPage() { }, }); - navigate({ - pathname: `/apps/${appId}/sso`, - search: createSearchParams({ email, firstName, lastName }).toString(), - }); + navigate( + { + pathname: `/apps/${appId}/sso`, + search: createSearchParams({ email, firstName, lastName }).toString(), + }, + { + replace: true, + }, + ); }, [appId, spAcsUrl, spEntityId]); return <>;