diff --git a/frontend/iframe/viewmodels/RootViewModel.ts b/frontend/iframe/viewmodels/RootViewModel.ts index 2efa7d8..f29e0fb 100644 --- a/frontend/iframe/viewmodels/RootViewModel.ts +++ b/frontend/iframe/viewmodels/RootViewModel.ts @@ -178,7 +178,9 @@ export class RootViewModel extends ViewModel { } } - let shouldRestoreLastUrl = true; + // Only restore last url if there is already a session. + // This will result in the user being sent to login screen. + let shouldRestoreLastUrl = sessionInfos.length > 1; // We never want to show the session picker, even if it was the last url. const willShowSessionPicker = this.platform.history.getLastSessionUrl() === "#/session";