How to get current URL in Magento?

Posted by Damodar Bashyal on March 24, 2010

 

In Magento, I use below codes as required to get the Current Url and pages. I hope this will help you to find current url in your magento ecommerce website. Below is the first code that will return full Magento's current Url.

<?php
$currentUrl = $this->helper('core/url')->getCurrentUrl();
?>

More»

QR Code: How to get current URL in Magento?