fix(navigation): ensure default route loads content

- Updated AuthNavigator to push /worker-main/home/ explicitly
- Updated StaffMainNavigator to navigate to home by default
- Fixes blank screen issue by ensuring RouterOutlet has a child route
This commit is contained in:
Achintha Isuru
2026-01-24 12:26:50 -05:00
parent b16d0733de
commit e2e7ad5567
2 changed files with 2 additions and 2 deletions

View File

@@ -16,6 +16,6 @@ extension AuthNavigator on IModularNavigator {
/// Navigates to the worker home (external to this module). /// Navigates to the worker home (external to this module).
void pushWorkerHome() { void pushWorkerHome() {
pushNamed('/worker-home'); pushNamed('/worker-main/home/');
} }
} }

View File

@@ -6,7 +6,7 @@ extension StaffMainNavigator on IModularNavigator {
/// Navigates to the Staff Main Shell (Home). /// Navigates to the Staff Main Shell (Home).
/// This replaces the current navigation stack. /// This replaces the current navigation stack.
void navigateStaffMain() { void navigateStaffMain() {
navigate('${StaffMainRoutes.modulePath}/'); navigate('${StaffMainRoutes.modulePath}/home/');
} }
/// Navigates to the Shifts tab. /// Navigates to the Shifts tab.