We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e13b540 + 8692857 commit dd92f32Copy full SHA for dd92f32
1 file changed
packages/fxa-settings/src/components/App/index.tsx
@@ -348,6 +348,12 @@ export const App = ({
348
return <LoadingSpinner fullScreen />;
349
}
350
351
+ // If we're on settings route but user is not signed in, redirect immediately
352
+ if (window.location.pathname?.includes('/settings') && !isSignedIn) {
353
+ hardNavigate('/');
354
+ return <LoadingSpinner fullScreen />;
355
+ }
356
+
357
return (
358
<Router basepath="/">
359
<AuthAndAccountSetupRoutes
0 commit comments