Skip to content

Commit

Permalink
Fix dropbpx auth deeplink issue (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-pratik-k authored Dec 31, 2024
1 parent c465d1f commit 50fb128
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/lib/ui/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ class _CloudGalleryAppState extends ConsumerState<CloudGalleryApp> {
_router = GoRouter(
initialLocation: _configureInitialRoute(),
routes: $appRoutes,
redirect: (context, state) {
if (state.uri.path.contains('/auth')) {
return '/';
}
return null;
},
);
super.initState();
}
Expand Down

0 comments on commit 50fb128

Please sign in to comment.