To resolve the issue, add pathMatch: 'full' to the parent route (/me/temp) in TempRoutes. This ensures Angular correctly recognizes the full path after a page reload.