This commit is contained in:
2025-10-26 19:46:32 +01:00
parent b6300ffa30
commit 01fb4e308a
2 changed files with 15 additions and 8 deletions
+6 -1
View File
@@ -4714,11 +4714,16 @@ const AppLayout = () => {
);
if (['logged-out', 'authenticating', 'selecting-tenant'].includes(appStatus)) {
const shouldRememberLastLocation = appStatus !== 'logged-out';
return (
<Navigate
to="/account/login"
replace
state={{ from: location.pathname + location.search }}
state={
shouldRememberLastLocation
? { from: location.pathname + location.search }
: undefined
}
/>
);
}