diff options
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/app/app-routing.module.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/client/src/app/app-routing.module.ts b/client/src/app/app-routing.module.ts index 0b31bf453..30e615b3e 100644 --- a/client/src/app/app-routing.module.ts +++ b/client/src/app/app-routing.module.ts | |||
@@ -2,6 +2,7 @@ import { NgModule } from '@angular/core' | |||
2 | import { RouterModule, Routes } from '@angular/router' | 2 | import { RouterModule, Routes } from '@angular/router' |
3 | 3 | ||
4 | import { PreloadSelectedModulesList } from './core' | 4 | import { PreloadSelectedModulesList } from './core' |
5 | import { AppComponent } from '@app/app.component' | ||
5 | 6 | ||
6 | const routes: Routes = [ | 7 | const routes: Routes = [ |
7 | { | 8 | { |
@@ -25,6 +26,10 @@ const routes: Routes = [ | |||
25 | loadChildren: './+about/about.module#AboutModule' | 26 | loadChildren: './+about/about.module#AboutModule' |
26 | }, | 27 | }, |
27 | { | 28 | { |
29 | path: '', | ||
30 | component: AppComponent // Avoid 404, app component will redirect dynamically | ||
31 | }, | ||
32 | { | ||
28 | path: '**', | 33 | path: '**', |
29 | loadChildren: './+page-not-found/page-not-found.module#PageNotFoundModule' | 34 | loadChildren: './+page-not-found/page-not-found.module#PageNotFoundModule' |
30 | } | 35 | } |