Skip to main content
Tweeted twitter.com/#!/StackMagento/status/550460755251064832
added 47 characters in body
Source Link
Dan Hanly
  • 724
  • 7
  • 28

I'm in a situation whereby our Caching module is obfuscating the requests and the URLs, making it difficult to tell what the current page is.

For example - without caching:

/checkout/cart 

with caching:

/899472304723khb4i23grhi29dhokhsabidb3q78bdi2bdiwbyudybasud6s81g 

This is true regardless of reading the request via $this->getRequest();, $_SERVER['REQUEST_URI']; or by reading Mage::helper('core/helper')->getCurrentUrl(); - the URL in all cases is obfuscated as above.

Due to this, I'm a little stuck on how to detect the current page without this information. Can someone help?

I'm in a situation whereby our Caching module is obfuscating the requests and the URLs, making it difficult to tell what the current page is.

For example - without caching:

/checkout/cart 

with caching:

/899472304723khb4i23grhi29dhokhsabidb3q78bdi2bdiwbyudybasud6s81g 

This is true regardless of reading the request via $this->getRequest();, $_SERVER['REQUEST_URI']; or by reading Mage::helper('core/helper')->getCurrentUrl();

Due to this, I'm a little stuck on how to detect the current page without this information. Can someone help?

I'm in a situation whereby our Caching module is obfuscating the requests and the URLs, making it difficult to tell what the current page is.

For example - without caching:

/checkout/cart 

with caching:

/899472304723khb4i23grhi29dhokhsabidb3q78bdi2bdiwbyudybasud6s81g 

This is true regardless of reading the request via $this->getRequest();, $_SERVER['REQUEST_URI']; or by reading Mage::helper('core/helper')->getCurrentUrl(); - the URL in all cases is obfuscated as above.

Due to this, I'm a little stuck on how to detect the current page without this information. Can someone help?

Source Link
Dan Hanly
  • 724
  • 7
  • 28

Determining the Current Page without use of request or URL

I'm in a situation whereby our Caching module is obfuscating the requests and the URLs, making it difficult to tell what the current page is.

For example - without caching:

/checkout/cart 

with caching:

/899472304723khb4i23grhi29dhokhsabidb3q78bdi2bdiwbyudybasud6s81g 

This is true regardless of reading the request via $this->getRequest();, $_SERVER['REQUEST_URI']; or by reading Mage::helper('core/helper')->getCurrentUrl();

Due to this, I'm a little stuck on how to detect the current page without this information. Can someone help?