From b889cdb2c6c0ec953e893f3d87cf8da426dcf7ee Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 28 Jun 2018 17:16:22 +0200 Subject: Avoid 404 title on the first page load --- client/src/app/app-routing.module.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'client/src/app') 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' import { RouterModule, Routes } from '@angular/router' import { PreloadSelectedModulesList } from './core' +import { AppComponent } from '@app/app.component' const routes: Routes = [ { @@ -24,6 +25,10 @@ const routes: Routes = [ path: 'about', loadChildren: './+about/about.module#AboutModule' }, + { + path: '', + component: AppComponent // Avoid 404, app component will redirect dynamically + }, { path: '**', loadChildren: './+page-not-found/page-not-found.module#PageNotFoundModule' -- cgit v1.2.3