Expand my Community achievements bar.

SOLVED

AEM OOTB Page Redirect not working as expected when selectors are present

Avatar

Community Advisor

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.

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

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

I think in that case, you have to manage those redirects as HTTPD redirects.

e.g. https://github.com/arunpatidar02/aemaacs-aemlab/blob/f96ce5316dfa4798c72d2e87d3a0b41fc49791a4/dispat... 



Arun Patidar

View solution in original post

4 Replies

Avatar

Community Advisor

Hi @krishna_sai 
What is the use of selector here? If you are not using this selector, then you can add a redirect rule at dispatcher to redirect instead of using AEM OOTB redirects.



Arun Patidar

Avatar

Community Advisor

Hi @arunpatidar 

After login into our website, a selector is being added to the pages based on user type and we need selector because we are having some kind of personalisation doing based on it.

 

Now when the user tries to navigate to any page that has page redirects to it, it is not redirecting properly bcz of user selectors present in the url

 

 

Thanks

Krishna

Avatar

Correct answer by
Community Advisor

I think in that case, you have to manage those redirects as HTTPD redirects.

e.g. https://github.com/arunpatidar02/aemaacs-aemlab/blob/f96ce5316dfa4798c72d2e87d3a0b41fc49791a4/dispat... 



Arun Patidar

Avatar

Administrator

@krishna_sai Did you find the suggestions from Arun helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.



Kautuk Sahni