Monthly Archives: September 2012

Magento: How to get current url

$currentUrl = Mage::helper('core/url')->getCurrentUrl();

For example:

homepage = http://local.mag17/
product page = http://local.mag17/index.php/sony-vaio-vgn-txn27n-b-11-1-notebook-pc.html

Advertisements
Advertisements