[英]Rendering ErrorPage shape manually in Orchard
crosspost: https://orchard.codeplex.com/discussions/472090 交叉路口: https ://orchard.codeplex.com/discussions/472090
Can we get the ErrorPage shape to render by a specific route like ~/Error/ErrorPage or something? 我们可以通过特定的路径(例如〜/ Error / ErrorPage或类似的东西)来获取要呈现的ErrorPage形状吗? 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.
我的网站中的“运行时错误”页面有500个错误,我想通过customErrors将这些错误重定向到默认的ErrorPage或Orchard。
Write a controller and create a route that points to it. 编写一个控制器并创建指向它的路由。 From your controller action, throw an exception.
从控制器动作中引发异常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.