Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

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

Avatar

Community Advisor

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

Topics

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

1 Reply

Avatar

Community Advisor

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

AEM LinksLinkedIn