From 5b732fea7b33ce4f39fd158d836c93fecfbd8c17 Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Tue, 29 Mar 2022 17:14:00 +0300 Subject: [PATCH] [Library | Trunk]: ISVocabularies.service.ts: Make url to vocabularies sdg.json and fos.json absolute with domain prefix. --- utils/staticAutoComplete/ISVocabularies.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/staticAutoComplete/ISVocabularies.service.ts b/utils/staticAutoComplete/ISVocabularies.service.ts index 38dc3bcf..664bffb0 100644 --- a/utils/staticAutoComplete/ISVocabularies.service.ts +++ b/utils/staticAutoComplete/ISVocabularies.service.ts @@ -125,14 +125,14 @@ export class ISVocabulariesService { getLocalVocabularyFromService(vocabularyName: string, properties: EnvProperties): Observable { if(vocabularyName == "sdg"){ - let url = "/assets/vocabulary/sdg.json"; + let url = properties.domain+"/assets/vocabulary/sdg.json"; return this.http.get((properties.useLongCache) ? (properties.cacheUrl + encodeURIComponent(url)) : url) //.map(res => res.json()) .pipe(map(res => res['sdg'])) .pipe(map(res => this.parseSDGs(res))) .pipe(catchError(this.handleError)); }else if( vocabularyName == "fos"){ - let url = "/assets/vocabulary/fos.json"; + let url = properties.domain+"/assets/vocabulary/fos.json"; return this.http.get((properties.useLongCache) ? (properties.cacheUrl + encodeURIComponent(url)) : url) //.map(res => res.json()) .pipe(map(res => res['fos']))