Rendering ErrorPage shape manually

Topics: Core, Customizing Orchard
Dec 6, 2013 at 10:05 AM
Edited Dec 6, 2013 at 10:06 AM
crosspost: http://stackoverflow.com/questions/20421138/rendering-errorpage-shape-manually-in-orchard

Can we get the ErrorPage shape to render by a specific route like ~/Error/ErrorPage or something? 500 errors serve the Runtime Error page in my site and I'd like to redirect those via customErrors to the default ErrorPage or Orchard instead.
Developer
Dec 6, 2013 at 10:07 AM
I think you will have to new up the ErrorPage shape from that route.
Currently the only place from where the ErrorPage shape is created is the UnhandledExceptionFilter (somewhere in Orchard.Framework).
Developer
Dec 7, 2013 at 11:39 AM
I misread the question, you don't want to customize the shape. Bertrand's answer on SO is the correct one.