Skip to content

Instantly share code, notes, and snippets.

@akshaysura
Last active June 12, 2025 19:43
Show Gist options
  • Save akshaysura/d55345c00bb1282e4f6849a40ab5ffb4 to your computer and use it in GitHub Desktop.
Save akshaysura/d55345c00bb1282e4f6849a40ab5ffb4 to your computer and use it in GitHub Desktop.
SxaPageModeRenderingErrorStrategy Patch
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<pipelines>
<mvc.renderRendering>
<processor type="Sitecore.Mvc.Pipelines.Response.RenderRendering.ExecuteRenderer, Sitecore.Mvc">
<param type="Sitecore.Mvc.Pipelines.Response.RenderRendering.HttpExceptionWrappingRendererErrorStrategy, Sitecore.Mvc" desc="rendererErrorHandler">
<param type="Sitecore.Mvc.Pipelines.Response.RenderRendering.ChainedRendererErrorStrategy, Sitecore.Mvc" desc="rendererErrorHandler">
<Handlers hint="list">
<handler patch:before="handler[@type='Sitecore.XA.Foundation.Presentation.Pipelines.RenderRendering.SxaPageModeRenderingErrorStrategy, Sitecore.XA.Foundation.Presentation']" type="SOMESOLUTION.SOMEPROJECT.PipelineHandlers.CatchErrorsRendererErrorStrategy, SOMESOLUTION.SOMEPROJECT.PipelineHandlers"/>
</Handlers>
</param>
</param>
</processor>
</mvc.renderRendering>
</pipelines>
</sitecore>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment