$currentUrl = $this->helper(‘core/url’)->getCurrentUrl();
$baseUrl = Mage::getBaseUrl();
$mediaUrl = Mage::getBaseUrl(‘media’);
$urlRequest = Mage::app()->getFrontController()->getRequest();
$urlPart = $urlRequest->getServer(‘ORIG_PATH_INFO’);
if(is_null($urlPart))
{ $urlPart = $urlRequest->getServer('PATH_INFO'); }
$urlPart = substr($urlPart, 1 ); $currentUrl = $this->getUrl($urlPart);
Se lo store in modalità HTTPS
$isSecure = Mage::app()->getStore()->isCurrentlySecure();
$locale = substr(Mage::app()->getLocale()->getLocale(),0,
strpos(Mage::app()->getLocale()->getLocale(),’_'));
