Skip to content

High performance self-hosted photo and video management solution.

fix(mobile): prevent duplicate login pages for unauthenticated share intent warm start (#29054)

Ebin Santhosh769c4015d3a0
diff --git a/mobile/lib/pages/common/splash_screen.page.dart b/mobile/lib/pages/common/splash_screen.page.dart
index de6fda5773..2f1328d7a1 100644
--- a/mobile/lib/pages/common/splash_screen.page.dart
+++ b/mobile/lib/pages/common/splash_screen.page.dart
@@ -355,14 +355,14 @@ class SplashScreenPageState extends ConsumerState<SplashScreenPage> {
onError: (exception) => {
log.severe('Failed to update auth info with access token: $accessToken'),
ref.read(authProvider.notifier).logout(),
- context.replaceRoute(const LoginRoute()),
+ context.router.replaceAll([const LoginRoute()]),
},
),
);
} else {
log.severe('Missing crucial offline login info - Logging out completely');
unawaited(ref.read(authProvider.notifier).logout());
- unawaited(context.replaceRoute(const LoginRoute()));
+ unawaited(context.router.replaceAll([const LoginRoute()]));
return;
}