Magento get current url path


Magento get current url path : You can get current url path as


Magento get current url path Syntax

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

Which will return the current url path.

Magento get Current url path Example

category/fashion/latest

User Ans/Comments

📖 Read More


Advertisements