Skip to content

Commit a931774

Browse files
authored
Merge pull request #18323 from mozilla/inactive-active-banner-fix
fix(inactives): Don't hard navigate when redirectTo is 'settings'
2 parents 16deb2e + 116ddd0 commit a931774

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • packages/fxa-settings/src/pages/Signin

packages/fxa-settings/src/pages/Signin/utils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,9 @@ const getNonOAuthNavigationTarget = async (
249249
),
250250
};
251251
}
252-
if (redirectTo) {
252+
// We don't want a hard navigate to `/settings` as it
253+
// clears out the initially created integration.
254+
if (redirectTo && redirectTo !== '/settings') {
253255
return { to: redirectTo, shouldHardNavigate: true };
254256
}
255257
return { to: '/settings' };

0 commit comments

Comments
 (0)