Fix development bug with selected community from getCommunityDomain

This commit is contained in:
Konstantinos Triantafyllou 2022-09-29 10:42:49 +03:00
parent 5a515908cd
commit a72f962b3d
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ import {Session} from "../login/utils/helper.class";
export class ConnectHelper { export class ConnectHelper {
public static getCommunityFromDomain(domain: string): string{ 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 = "covid-19.openaire.eu"; //for testing
} }
domain = domain.indexOf("//") != -1? domain.split("//")[1]:domain; //remove https:// prefix domain = domain.indexOf("//") != -1? domain.split("//")[1]:domain; //remove https:// prefix