From cf687d0dcfee22f175fdc4a66593d4ee07afb708 Mon Sep 17 00:00:00 2001 From: fulleni Date: Tue, 7 Oct 2025 07:48:11 +0100 Subject: [PATCH 1/3] refactor(authentication): use pushNamed instead of goNamed for navigation - Replace context.goNamed with context.pushNamed in _RequestCodeView - This change affects both account linking and regular verification flows - The modification ensures a new entry is pushed onto the navigation stack - instead of replacing the current route, changing the navigation behavior --- lib/authentication/view/request_code_page.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/authentication/view/request_code_page.dart b/lib/authentication/view/request_code_page.dart index 8a945a2a..70f2ff10 100644 --- a/lib/authentication/view/request_code_page.dart +++ b/lib/authentication/view/request_code_page.dart @@ -72,12 +72,12 @@ class _RequestCodeView extends StatelessWidget { context, ).routerDelegate.currentConfiguration.last.route.name; if (currentRouteName == Routes.accountLinkingRequestCodeName) { - context.goNamed( + context.pushNamed( Routes.accountLinkingVerifyCodeName, pathParameters: {'email': state.email!}, ); } else { - context.goNamed( + context.pushNamed( Routes.verifyCodeName, pathParameters: {'email': state.email!}, ); From d3e051f1aa84e78efcc6930ebeeb41be54591fd1 Mon Sep 17 00:00:00 2001 From: fulleni Date: Tue, 7 Oct 2025 07:48:25 +0100 Subject: [PATCH 2/3] fix(authentication): update button navigation to avoid replacing entire stack - Change context.goNamed to context.pushNamed in AuthenticationPage - This modification prevents the authentication page from being replaced - Allows users to navigate back to the authentication page --- lib/authentication/view/authentication_page.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/authentication/view/authentication_page.dart b/lib/authentication/view/authentication_page.dart index e7b12c53..ed5a2500 100644 --- a/lib/authentication/view/authentication_page.dart +++ b/lib/authentication/view/authentication_page.dart @@ -85,7 +85,7 @@ class AuthenticationPage extends StatelessWidget { onPressed: isLoading ? null : () { - context.goNamed(Routes.requestCodeName); + context.pushNamed(Routes.requestCodeName); }, label: Text(l10n.authenticationEmailSignInButton), style: ElevatedButton.styleFrom( From 4247e364650c21e732a268e39ead5ce81631f2a5 Mon Sep 17 00:00:00 2001 From: fulleni Date: Tue, 7 Oct 2025 07:48:40 +0100 Subject: [PATCH 3/3] fix(authentication): update account linking button navigation - Replace context.goNamed with context.pushNamed for account linking request - This change ensures proper navigation stack handling when navigating to the account linking request page --- lib/authentication/view/account_linking_page.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/authentication/view/account_linking_page.dart b/lib/authentication/view/account_linking_page.dart index f1e7d821..f4783eaa 100644 --- a/lib/authentication/view/account_linking_page.dart +++ b/lib/authentication/view/account_linking_page.dart @@ -75,7 +75,7 @@ class AccountLinkingPage extends StatelessWidget { onPressed: isLoading ? null : () { - context.goNamed( + context.pushNamed( Routes.accountLinkingRequestCodeName, ); },