diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-28 17:16:22 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-28 17:16:22 +0200 |
commit | b889cdb2c6c0ec953e893f3d87cf8da426dcf7ee (patch) | |
tree | cf010af90a0ae082b42640abd97305240d7beeed /client/src | |
parent | 1b952dd4266b0da4887701e0ce0860faded96768 (diff) | |
download | PeerTube-b889cdb2c6c0ec953e893f3d87cf8da426dcf7ee.tar.gz PeerTube-b889cdb2c6c0ec953e893f3d87cf8da426dcf7ee.tar.zst PeerTube-b889cdb2c6c0ec953e893f3d87cf8da426dcf7ee.zip |
Avoid 404 title on the first page load
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 | } |