mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-17 07:50:12 +01:00
fix(route): fix #2, add a default handler for non registered routes
This commit is contained in:
parent
cba6578722
commit
86a8cb1cda
1 changed files with 7 additions and 0 deletions
|
|
@ -36,6 +36,13 @@ import {layoutPaths} from './theme/theme.constants';
|
||||||
component: Pages,
|
component: Pages,
|
||||||
useAsDefault: true
|
useAsDefault: true
|
||||||
},
|
},
|
||||||
|
// handle any non-registered route
|
||||||
|
// and simply redirects back to dashboard page
|
||||||
|
// you can specify any customer 404 page while it's not built in ito ng2-admin
|
||||||
|
{
|
||||||
|
path: '/**',
|
||||||
|
redirectTo: ['Pages']
|
||||||
|
}
|
||||||
])
|
])
|
||||||
export class App {
|
export class App {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue