magento-turpentine
magento-turpentine copied to clipboard
Get current URL
Hi,
I had an issue with getCurrentUrl
function in core/url
model. It could not get the current URL in ESI request.
I found that the code in Esi.php#L294 only set $referrerParam
for page scope. I tried to remove the if condition, the function bellow can get the correct current URL
Mage::helper('core/url')->getCurrentUrl()
Is it safe to remove the if condition?
Thanks, Phu
@miguelbalparda how do you think?
<action method="setEsiOptions">
<params>
<access>private</access>
<scope>page</scope>
<ttl>0</ttl>
<registry_keys>
<current_category/>
</registry_keys>
</params>
</action>`
The registery_keys -> current category together with the right scope fixed it for me. Please try this.