diff options
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 | ||