aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-06-28 17:16:22 +0200
committerChocobozzz <me@florianbigard.com>2018-06-28 17:16:22 +0200
commitb889cdb2c6c0ec953e893f3d87cf8da426dcf7ee (patch)
treecf010af90a0ae082b42640abd97305240d7beeed /client
parent1b952dd4266b0da4887701e0ce0860faded96768 (diff)
downloadPeerTube-b889cdb2c6c0ec953e893f3d87cf8da426dcf7ee.tar.gz
PeerTube-b889cdb2c6c0ec953e893f3d87cf8da426dcf7ee.tar.zst
PeerTube-b889cdb2c6c0ec953e893f3d87cf8da426dcf7ee.zip
Avoid 404 title on the first page load
Diffstat (limited to 'client')
-rw-r--r--client/src/app/app-routing.module.ts5
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'
2import { RouterModule, Routes } from '@angular/router' 2import { RouterModule, Routes } from '@angular/router'
3 3
4import { PreloadSelectedModulesList } from './core' 4import { PreloadSelectedModulesList } from './core'
5import { AppComponent } from '@app/app.component'
5 6
6const routes: Routes = [ 7const 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 }