Rendering ErrorPage shape manually

Topics: Core, Customizing Orchard
Dec 6, 2013 at 10:05 AM
Edited Dec 6, 2013 at 10:06 AM

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.
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).
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.