3

Summary

  • This problem is affecting my Venus Theme Mega Menu module.
  • When caching is turned on the menu no longer shows correct .active classes for the current page.
  • I'm looking in the module code where the .active page is set (app/code/Ves/Megamenu/Helper/Data.php)
  • The default magento menu does not suffer this problem.
  • I'm using SSL for storefront pages

Details

When caching is turned off the following two vendor methods both return the correct current url:

$this->_storeManager->getStore()->getCurrentUrl()

and

$this->_urlInterface->getCurrentUrl()

When caching is turned on both methods return only the URL of the first page that is loaded after the cache is turned on.

Example

Does anyone know why the caching should interfere with these methods and if there is anything I can do to correct it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.