diff --git a/connect/connectHelper.ts b/connect/connectHelper.ts index 321beae8..ed8fb090 100644 --- a/connect/connectHelper.ts +++ b/connect/connectHelper.ts @@ -5,7 +5,7 @@ import {Session} from "../login/utils/helper.class"; export class ConnectHelper { public static getCommunityFromDomain(domain: string): string{ - if(properties.environment == "development") { + if(properties.environment == "development" && (properties.adminToolsPortalType == "connect" || properties.adminToolsPortalType == "community")) { domain = "covid-19.openaire.eu"; //for testing } domain = domain.indexOf("//") != -1? domain.split("//")[1]:domain; //remove https:// prefix