0

How to abort the execution of the whole request and redirect to another page from GetPageItemProcessor Sitecore pipeline processor. I tried a few options but they all make the execution of the request continues to the rendering controller of the item requested. I used:

WebUtil.Redirect(smsRedirectUrl, false);
WebUtil.Redirect(smsRedirectUrl, true);

I also tried to use "return" with no luck

3
  • Can you share the code snippet you have implemented. As this is a pipeline, normally, you can use args.AbortPipeline(). This will stop the execution of the pipeline Commented Mar 21, 2019 at 5:31
  • Thanks Hishaam for your response. "you can use args.AbortPipeline()" That's right but I don't want to just abort the pipeline I need to stop the execution of the whole request. After the pipeline, the controllers of the renderings on the target item get executed
    – Arsany
    Commented Mar 22, 2019 at 7:28
  • Possible duplicate of sitecore.stackexchange.com/questions/15088/… Commented Apr 11, 2019 at 15:57

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.