Component included in SDI (Sling Dynamic Include) - Redirection Issue on Dispatcher (But not on Publish Node) | Community
Skip to main content
Rohan_Garg
Community Advisor
Community Advisor
March 29, 2023

Component included in SDI (Sling Dynamic Include) - Redirection Issue on Dispatcher (But not on Publish Node)

  • March 29, 2023
  • 1 reply
  • 723 views

Hi AEM Community,

 

Scenario - We have a component included in the SDI. In this component, we are redirecting to different page based on a condition. This redirection is working in publisher but not on dispatcher.

The redirect is configured in the sling model via response.sendredirect(); 

In the logger all details are printed correctly including the page where it has to redirect. However, the redirect is not happening in dispatcher.

This issue is only faced after adding the component in SDI.

 

Any pointers on why the above would happen ?

Is it possible due to the SDI path being appended with resource types ?

 

@arunpatidar@briankasingli@arpitvarshney

@singaiah_chintalapudi@umesh_thakur@sanjay_bangar 

@kautuk_sahni 

 

P.S - I will soon post the code snippet as soon as possible.

 

Thanks,

Rohan Garg

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

arunpatidar
Community Advisor
Community Advisor
March 29, 2023

Hi @rohan_garg 

Caching could be the cause. Can you check if the SDI part is cached or not? Does every time a request hits the publishers. You can try adding logs to check what happens when you access via dispatcher.

Arun Patidar