Details
-
Improvement
-
Resolution: Unresolved
-
Medium
-
None
-
4.4.0
-
None
Description
I think that to avoid the penalty when the variable RemoveSiteAccessIfDefaultAccess in site.ini is set to "enabled" the file kernel/private/classes/ezplanguageswitcher.php should have the line 160 changed (replaced) with the following code.
$saIni = $this->getSiteAccessIni(); if (( $saIni->variable( 'SiteSettings', 'DefaultAccess' )==$this->destinationSiteAccess) && ($saIni->variable( 'SiteAccessSettings', 'RemoveSiteAccessIfDefaultAccess' )=='enabled' )) $finalUrl = $this->baseDestinationUrl . '/' . $urlAlias; else $finalUrl = $this->baseDestinationUrl . '/' . $this->destinationSiteAccess . '/' . $urlAlias;
Current EZPublish code doesn't consider the variable RemoveSiteAccessIfDefaultAccess at all and when this variable is set to "enabled" and there are at least 2 public site accesses Search Engines find more url with same content and this is not good.
thanks.