I'm looking for a way to get current URL from the file "view.phtml". I've tried these 2 differents ways. None of them do print the entire product URL. Worst, the second way crashes...
/*1*/ Mage::log(__METHOD__ . '()'.Mage::getUrl('*/*/*'));
/*2*/ Mage::log(__METHOD__ . '()'.Mage::helper('core/url')->getCurrentUrl());
Don't hesitate to provide code snippets as I'm new in Magento.