From 77914a9b85ef2925ec09674c541939fc116b7c8d Mon Sep 17 00:00:00 2001 From: Edouard Marquez Date: Mon, 15 Jan 2024 13:03:05 +0100 Subject: [PATCH] Navigator: if the path is empty -> force the homepage (#4986) --- packages/smooth_app/lib/pages/navigator/app_navigator.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/smooth_app/lib/pages/navigator/app_navigator.dart b/packages/smooth_app/lib/pages/navigator/app_navigator.dart index 0ee683411b27..1352265ef388 100644 --- a/packages/smooth_app/lib/pages/navigator/app_navigator.dart +++ b/packages/smooth_app/lib/pages/navigator/app_navigator.dart @@ -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(); }