I wanted to listen to the redirection of the home page in magento2. I used the
controller_action_predispatch events and checked the full action
But what I am facing is, The page gets identified the first time, but after that, it's not being identified by the observer.
I have to clean the cache again to make the observer identify it. and even so, it works only the first time.
This page is only for the home page. Every other page is working fine.
Also there is no problem when the cache is disabled. But there is a problem when cache is enabled.