Last Updated: February 25, 2016
·
716
· dsalvagni

Magento - Get current url of a page

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

Or encoded

Mage::helper('core/url')->getCurrentBase64Url();