Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
$currentUrl = Mage::helper('core/url')->getCurrentUrl();
$url = Mage::getSingleton('core/url')->parseUrl($currentUrl);
$path = $url->getPath();
?>
<h3 style="color: red"><?php echo $currentUrl;?></h3>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment