Hi All,
I have a requirement where I need to ask a user to login or redirected to the AEM login page whenever they try to open a page within a certain hierarchy. ( If they are not logged into AEM )
Example:
we-retail
/en
/en/home
en/home/about-us
Now I need to redirect the user to the login page whenever they try to access any page which is a child page of /en.
i.e. If user goes to /content/us/home, they should see the page .
But If they try to go to /content/en/home or /content/en/home/about-us or /content/en/.. they should be redirected to the login page (if they are not logged in, if they are , they should be able to see the page without logging in)
Thanks