Is it possible to get current category when Full Page Cache is enabled?
Catalog controller is not executed in this case, so the registry (current_category key) is empty. All I can get is the root category
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As one of the possible solution is to get category ID by given url. You have table of url rewrites and you have request string.
May be it’s not beautiful solution but it worked well for me.