title: Redirect to action in filterContext Result not working ASP.NET MVC
body: <p>I'm trying to redirect to a <code>Controller</code> in my <code>OnException</code> method, but the page is returning a blank view, and the link doesn't change to the page I redirected to. Please advise.</p>
  
  <p>This is the code:</p>
  
  <pre class="lang-cs prettyprint-override"><code>protected override void OnException(ExceptionContext filterContext)
  {
    if (filterContext.ExceptionHandled) return;
  
    if (filterContext.Exception is PolicyInForceException)
    {
      PolicyInForceException pife = filterContext.Exception as PolicyInForceException;
      filterContext.ExceptionHandled = true;
      filterContext.HttpContext.Response.Clear();
      filterContext.HttpContext.Server.ClearError();
  
      filterContext.Result = View(
        new RouteValueDictionary(
          new { area = "", controller = "quote", action = "Confirmation", id = pife.RequestId }
        )
      );
  
    }
    else
    {
      base.OnException(filterContext);
    }
  }
  </code></pre>