diff --git a/app/lib/ui/app.dart b/app/lib/ui/app.dart index 5ebc648..70a04f5 100644 --- a/app/lib/ui/app.dart +++ b/app/lib/ui/app.dart @@ -41,6 +41,12 @@ class _CloudGalleryAppState extends ConsumerState { _router = GoRouter( initialLocation: _configureInitialRoute(), routes: $appRoutes, + redirect: (context, state) { + if (state.uri.path.contains('/auth')) { + return '/'; + } + return null; + }, ); super.initState(); }