1.

How we can get current url in Magento?

Answer»

To retrieve the CURRENT URL PATH in Magento, use the below-given syntax at first.Example

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



Discussion

No Comment Found