Skip to content

Commit a6ddda9

Browse files
committed
fix page not found
1 parent 8d60cfe commit a6ddda9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/app/app.routing.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ const routes: Routes = [
2020
// with meta
2121
{ path: 'back', loadChildren: './transfer-back/transfer-back.module#TransferBackModule', canActivateChild: [MetaGuard]},
2222
// 404
23-
{ path: '404', loadChildren: './not-found/not-found.module#NotFoundModule' },
24-
{ path: '**', redirectTo: '404', pathMatch: 'full' }
23+
{ path: '**', loadChildren: './not-found/not-found.module#NotFoundModule' },
2524
];
2625
// must use {initialNavigation: 'enabled'}) - for one load page, without reload
2726
export const AppRoutes = RouterModule.forRoot(routes, { initialNavigation: 'enabled' });

0 commit comments

Comments
 (0)