From fc21ef5c62d845576a916414468b3a57370a57b2 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 4 Jun 2021 14:39:47 +0200 Subject: Speed up plugins loading --- client/src/app/app-routing.module.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'client/src/app/app-routing.module.ts') 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 } import { CustomReuseStrategy } from '@app/core/routing/custom-reuse-strategy' import { MenuGuards } from '@app/core/routing/menu-guard.service' import { POSSIBLE_LOCALES } from '@shared/core-utils/i18n' -import { MetaGuard, PreloadSelectedModulesList } from './core' +import { HomepageRedirectComponent, MetaGuard, PreloadSelectedModulesList } from './core' import { EmptyComponent } from './empty.component' import { USER_USERNAME_REGEX_CHARACTERS } from './shared/form-validators/user-validators' import { ActorRedirectGuard } from './shared/shared-main' @@ -156,7 +156,7 @@ const routes: Routes = [ { path: '', - component: EmptyComponent // Avoid 404, app component will redirect dynamically + component: HomepageRedirectComponent } ] @@ -164,7 +164,7 @@ const routes: Routes = [ for (const locale of POSSIBLE_LOCALES) { routes.push({ path: locale, - component: EmptyComponent + component: HomepageRedirectComponent }) } -- cgit v1.2.3