From 39f5218fa18478b0ad70187d111e6cefe60db695 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Mon, 23 Nov 2020 12:27:42 +0000 Subject: [PATCH] [Library | Trunk]: Set domain for aggregator portal git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59935 d315682c-612b-4755-9ff5-7f18f6832af3 --- utils/properties/environment-specific.service.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/utils/properties/environment-specific.service.ts b/utils/properties/environment-specific.service.ts index dbe06867..d8b7e0c2 100644 --- a/utils/properties/environment-specific.service.ts +++ b/utils/properties/environment-specific.service.ts @@ -20,7 +20,13 @@ export class EnvironmentSpecificService { if(properties.adminToolsCommunity == "connect") { if(properties.environment == "development"){ properties.domain = "https://beta."+(ConnectHelper.getCommunityFromDomain(properties.domain)?ConnectHelper.getCommunityFromDomain(properties.domain):"connect")+".openaire.eu"; - }else{ + } else{ + properties.domain = "https://" + this.getDomain(); + } + } else if(properties.adminToolsPortalType === 'aggregator') { + if(properties.environment == "development"){ + properties.domain = "https://beta.canada.openaire.eu"; + } else { properties.domain = "https://" + this.getDomain(); } }