How can we get the second last url in Magento 1.9?
I currently use this:
<?php echo Mage::getSingleton('core/session')->getLastUrl();?> To get the last URL.
But I want to get the second last URL after adding a product to the cart. Because the code above give in that case the url to add the product to the cart.
How can I get the url before that, so the second last?