I have built an app on Angular 8 and the below is the routing configuration i have setup, const routes: Routes = [ { path: '', redirectTo: "/pages", pathMatch: 'full', }, { path: 'pages', canActivate: [AuthGuard], loadChildren: () => import('./pages/pages.module') .then(m => m.PagesModule), }, { path: 'auth', loadChildren: './auth/auth.module#NgxAuthModule', }, { path: '**', redirectTo: 'pages' }, ]; For some reason, the default routing doesn't seem to work fine. I tried setting up the configuration to debug the routing and it looks like the router doesn't seem to pick up the redirect at all. Can anyone let me know if i am doing something wrong. I tried all different values for redirectTo like 'pages'. But nothing seems to work. Via Active questions tagged javascript - Stack Overflow https://ift.tt/4KIFwbN
A site where you can share knowledge