diff --git a/lib/core/router/app_router.dart b/lib/core/router/app_router.dart index abf0ef5..6aba244 100644 --- a/lib/core/router/app_router.dart +++ b/lib/core/router/app_router.dart @@ -35,9 +35,10 @@ GoRouter createRouter(AuthBloc authBloc) { return currentLocation == AppRoutes.splash ? null : AppRoutes.splash; } - // 📍 SOLUCIÓN HACKATÓN: Si la app intenta ir al Home, ignoramos el candado de seguridad - // Esto rompe el bucle infinito y te deja pasar directo tras validar con MySQL - if (currentLocation == AppRoutes.home) { + // 📍 SOLUCIÓN HACKATÓN: Si la app intenta ir al Home o a Direcciones, + // ignoramos el candado de seguridad para no rebotar al login. + if (currentLocation == AppRoutes.home || + currentLocation == AppRoutes.addresses) { return null; }