diff --git a/src/app/app.ts b/src/app/app.ts index a92d5f6d8d..766862db4f 100644 --- a/src/app/app.ts +++ b/src/app/app.ts @@ -37,7 +37,8 @@ import {Home} from './home/home'; }) @RouteConfig([ { path: '/', component: Home, name: 'Index' }, - { path: '/home', component: Home, name: 'Home' } + { path: '/home', component: Home, name: 'Home' }, + { path: '/**', redirectTo: ['Index'] } ]) export class App { name = 'Angular 2 Webpack Starter';