Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(settings): redirect to first available section on index

Steven Enamakel64b26338b8ec
diff --git a/app/src/components/settings/layout/SettingsIndexRedirect.tsx b/app/src/components/settings/layout/SettingsIndexRedirect.tsx
index 1f211b6b98..0011d8a28b 100644
--- a/app/src/components/settings/layout/SettingsIndexRedirect.tsx
+++ b/app/src/components/settings/layout/SettingsIndexRedirect.tsx
@@ -1,4 +1,4 @@
-import { Navigate, useLocation } from 'react-router-dom';
+import { Navigate } from 'react-router-dom';
import { useMediaQuery } from '../../../hooks/useMediaQuery';
@@ -14,10 +14,7 @@ import { useMediaQuery } from '../../../hooks/useMediaQuery';
*/
const SettingsIndexRedirect = () => {
const isWide = useMediaQuery('(min-width: 768px)');
- const location = useLocation();
- // Preserve nav state (notably the desktop modal's `backgroundLocation`) so the
- // index redirect doesn't drop the backdrop. Harmless on iOS.
- if (isWide) return <Navigate to="/settings/account" replace state={location.state} />;
+ if (isWide) return <Navigate to="/settings/account" replace />;
return null;
};