You are here

clickIsIntraDomain

Used by the following Containers: 
Variable Type: 
Custom Javascript
Returns true if the destination of that click is not internal to our domain but in our santianoCoreWebsiteIsInProduction
	function() {
    var websiteIsInProduction = {{santianoCoreWebsiteIsInProduction}};
	if (websiteIsInProduction) {
      	var productionOtherDomainNamesInternal = {{santianoInternalOtherDomainNames}};
		var clickHostName = {{clickHostName}};
		if ( productionOtherDomainNamesInternal.indexOf(clickHostName) != -1) {
        	return true
        } else {
          	return false  
        }
	} else {
  		return false
    }
}