Skip to content

Commit

Permalink
Navigator: if the path is empty -> force the homepage (#4986)
Browse files Browse the repository at this point in the history
  • Loading branch information
g123k authored Jan 15, 2024
1 parent 62a4a44 commit 77914a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/smooth_app/lib/pages/navigator/app_navigator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@ class _SmoothGoRouter {

if (externalLink) {
return _openExternalLink(path);
} else if (path.isEmpty) {
// Force the Homepage
return _InternalAppRoutes.HOME_PAGE;
} else {
return state.uri.toString();
}
Expand Down

0 comments on commit 77914a9

Please sign in to comment.