Skip to content

Commit 0c71aa5

Browse files
authored
Merge pull request #28 from Stivin/not-found
Динамический адрес для страницы 404
2 parents 8d60cfe + a6ddda9 commit 0c71aa5

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)