From a72f962b3d9c25f4bdeed026b12146090d1d2850 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Thu, 29 Sep 2022 10:42:49 +0300 Subject: [PATCH] Fix development bug with selected community from getCommunityDomain --- connect/connectHelper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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