AEM OOTB Page Redirect not working as expected when selectors are present
Hi Team,
If there is any redirect given to a page using page properties, it is working fine as expected.
For the same page, if there are any selectors, the redirect is not working as expected.
Steps to reproduce the issue.
- Go to we-retail page,http://localhost:4504/editor.html/content/we-retail/language-masters/en/men.html and in advance tab of page properties for redirect property update with another page i.e., /content/we-retail/language-masters/en/women
- Now view the page as published, we can see the page is being redirected to women page as expected http://localhost:4504/content/we-retail/language-masters/en/men.html?wcmmode=disabled
- Now add some selector to the men page and see the redirection is not working http://localhost:4504/content/we-retail/language-masters/en/men.selector.html?wcmmode=disabled
In our scenario, for pages selectors get appended in the URL after login and redirects are failing due to this issue.
Can someone provide any solution/thoughts here, if you have already come across such scenarios.
@arunpatidar @aanchal-sikka
Thanks,
Krishna
