diff options
author | Chocobozzz <me@florianbigard.com> | 2021-06-04 14:39:47 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-06-04 15:45:44 +0200 |
commit | fc21ef5c62d845576a916414468b3a57370a57b2 (patch) | |
tree | 818102bc909210870f9a28692361f7b5cbe219de /client/src/app/app-routing.module.ts | |
parent | 2989628b7913383b39ac34c7db8666a21f8e5037 (diff) | |
download | PeerTube-fc21ef5c62d845576a916414468b3a57370a57b2.tar.gz PeerTube-fc21ef5c62d845576a916414468b3a57370a57b2.tar.zst PeerTube-fc21ef5c62d845576a916414468b3a57370a57b2.zip |
Speed up plugins loading
Diffstat (limited to 'client/src/app/app-routing.module.ts')
-rw-r--r-- | client/src/app/app-routing.module.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/app-routing.module.ts b/client/src/app/app-routing.module.ts index b04e6a42b..1f98e9d2e 100644 --- a/client/src/app/app-routing.module.ts +++ b/client/src/app/app-routing.module.ts | |||
@@ -3,7 +3,7 @@ import { RouteReuseStrategy, RouterModule, Routes, UrlMatchResult, UrlSegment } | |||
3 | import { CustomReuseStrategy } from '@app/core/routing/custom-reuse-strategy' | 3 | import { CustomReuseStrategy } from '@app/core/routing/custom-reuse-strategy' |
4 | import { MenuGuards } from '@app/core/routing/menu-guard.service' | 4 | import { MenuGuards } from '@app/core/routing/menu-guard.service' |
5 | import { POSSIBLE_LOCALES } from '@shared/core-utils/i18n' | 5 | import { POSSIBLE_LOCALES } from '@shared/core-utils/i18n' |
6 | import { MetaGuard, PreloadSelectedModulesList } from './core' | 6 | import { HomepageRedirectComponent, MetaGuard, PreloadSelectedModulesList } from './core' |
7 | import { EmptyComponent } from './empty.component' | 7 | import { EmptyComponent } from './empty.component' |
8 | import { USER_USERNAME_REGEX_CHARACTERS } from './shared/form-validators/user-validators' | 8 | import { USER_USERNAME_REGEX_CHARACTERS } from './shared/form-validators/user-validators' |
9 | import { ActorRedirectGuard } from './shared/shared-main' | 9 | import { ActorRedirectGuard } from './shared/shared-main' |
@@ -156,7 +156,7 @@ const routes: Routes = [ | |||
156 | 156 | ||
157 | { | 157 | { |
158 | path: '', | 158 | path: '', |
159 | component: EmptyComponent // Avoid 404, app component will redirect dynamically | 159 | component: HomepageRedirectComponent |
160 | } | 160 | } |
161 | ] | 161 | ] |
162 | 162 | ||
@@ -164,7 +164,7 @@ const routes: Routes = [ | |||
164 | for (const locale of POSSIBLE_LOCALES) { | 164 | for (const locale of POSSIBLE_LOCALES) { |
165 | routes.push({ | 165 | routes.push({ |
166 | path: locale, | 166 | path: locale, |
167 | component: EmptyComponent | 167 | component: HomepageRedirectComponent |
168 | }) | 168 | }) |
169 | } | 169 | } |
170 | 170 | ||