aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/app.module.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-02-12 11:34:34 +0100
committerChocobozzz <me@florianbigard.com>2020-02-12 14:09:55 +0100
commit8cc56c7fddb4c9fe3cfe1a19f340fc07dc4cec0f (patch)
tree88fbda0d3c1b5f34569a877522cfe8d50705388a /client/src/app/app.module.ts
parent3f87a46f1dd01485e4a28422f74c3a1b0f56729f (diff)
downloadPeerTube-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.ts6
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'
18import { WelcomeModalComponent } from '@app/modal/welcome-modal.component' 18import { WelcomeModalComponent } from '@app/modal/welcome-modal.component'
19import { InstanceConfigWarningModalComponent } from '@app/modal/instance-config-warning-modal.component' 19import { InstanceConfigWarningModalComponent } from '@app/modal/instance-config-warning-modal.component'
20import { buildFileLocale, getCompleteLocale, isDefaultLocale } from '@shared/models' 20import { buildFileLocale, getCompleteLocale, isDefaultLocale } from '@shared/models'
21import { APP_BASE_HREF } from '@angular/common'
21 22
22export function metaFactory (serverService: ServerService): MetaLoader { 23export 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