From 8cc56c7fddb4c9fe3cfe1a19f340fc07dc4cec0f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 12 Feb 2020 11:34:34 +0100 Subject: Only use basehref Will allow us to use the localize option --- client/src/app/app.module.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'client/src/app/app.module.ts') diff --git a/client/src/app/app.module.ts b/client/src/app/app.module.ts index 14fdb7588..d11dba34d 100644 --- a/client/src/app/app.module.ts +++ b/client/src/app/app.module.ts @@ -18,6 +18,7 @@ import { SearchModule } from '@app/search' import { WelcomeModalComponent } from '@app/modal/welcome-modal.component' import { InstanceConfigWarningModalComponent } from '@app/modal/instance-config-warning-modal.component' import { buildFileLocale, getCompleteLocale, isDefaultLocale } from '@shared/models' +import { APP_BASE_HREF } from '@angular/common' export function metaFactory (serverService: ServerService): MetaLoader { return new MetaStaticLoader({ @@ -67,6 +68,11 @@ export function metaFactory (serverService: ServerService): MetaLoader { ], providers: [ + { + provide: APP_BASE_HREF, + useValue: '/' + }, + { provide: TRANSLATIONS, useFactory: (locale: string) => { -- cgit v1.2.3