I am using this code to get the URL of the current page I am on:
<?php $currentUrl = Mage::helper('core/url')->getCurrentUrl(); ?>
Problem is, at the end of the url, there is a slash. How can I change this:
example.com/page/
To this:
example.com/page
Best Answer
Below code has hack But work all time please check and let me know