diff options
author | Chocobozzz <me@florianbigard.com> | 2020-02-12 11:34:34 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-02-12 14:09:55 +0100 |
commit | 8cc56c7fddb4c9fe3cfe1a19f340fc07dc4cec0f (patch) | |
tree | 88fbda0d3c1b5f34569a877522cfe8d50705388a /client/src/app/app.module.ts | |
parent | 3f87a46f1dd01485e4a28422f74c3a1b0f56729f (diff) | |
download | PeerTube-8cc56c7fddb4c9fe3cfe1a19f340fc07dc4cec0f.tar.gz PeerTube-8cc56c7fddb4c9fe3cfe1a19f340fc07dc4cec0f.tar.zst PeerTube-8cc56c7fddb4c9fe3cfe1a19f340fc07dc4cec0f.zip |
Only use basehref
Will allow us to use the localize option
Diffstat (limited to 'client/src/app/app.module.ts')
-rw-r--r-- | client/src/app/app.module.ts | 6 |
1 files changed, 6 insertions, 0 deletions
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' | |||
18 | import { WelcomeModalComponent } from '@app/modal/welcome-modal.component' | 18 | import { WelcomeModalComponent } from '@app/modal/welcome-modal.component' |
19 | import { InstanceConfigWarningModalComponent } from '@app/modal/instance-config-warning-modal.component' | 19 | import { InstanceConfigWarningModalComponent } from '@app/modal/instance-config-warning-modal.component' |
20 | import { buildFileLocale, getCompleteLocale, isDefaultLocale } from '@shared/models' | 20 | import { buildFileLocale, getCompleteLocale, isDefaultLocale } from '@shared/models' |
21 | import { APP_BASE_HREF } from '@angular/common' | ||
21 | 22 | ||
22 | export function metaFactory (serverService: ServerService): MetaLoader { | 23 | export function metaFactory (serverService: ServerService): MetaLoader { |
23 | return new MetaStaticLoader({ | 24 | return new MetaStaticLoader({ |
@@ -68,6 +69,11 @@ export function metaFactory (serverService: ServerService): MetaLoader { | |||
68 | 69 | ||
69 | providers: [ | 70 | providers: [ |
70 | { | 71 | { |
72 | provide: APP_BASE_HREF, | ||
73 | useValue: '/' | ||
74 | }, | ||
75 | |||
76 | { | ||
71 | provide: TRANSLATIONS, | 77 | provide: TRANSLATIONS, |
72 | useFactory: (locale: string) => { | 78 | useFactory: (locale: string) => { |
73 | // Default locale, nothing to translate | 79 | // Default locale, nothing to translate |