mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Avoid 404 title on the first page load
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user