Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

With cache enabled getting wrong url instead of current url
 
muk_t
Sr. Member
 
Total Posts:  226
Joined:  2012-07-24
 

Hi All,

I am trying to get the current url in topmenu.phtml.I am using the following code to get the current url.

$_currentUrl Mage::helper('core/url')->getCurrentUrl();

If I keep cache disabled then every thing works fine.

But if i have cache enabled every time i get same url that is “localhost/myproject/”.
using

$_currentUrl Mage::helper('core/url')->getCurrentUrl();

This problem is on Magento Enterprise edition 1.12.0.0

Can anny one please provide some help.
Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top