title: ASP.NET MVC Redirect to Home Page from Error Page
body: <p>I am trying to redirect to home page on click of banner.
  But it is not working as expected.
  Error occured on 'Work' controller.
  Error Page showed up as expected on exception, but on click of banner it redirects to  </p>
  
  <pre><code>http://127.0.0.1:81/Error?aspxerrorpath=/Work/Home
  </code></pre>
  
  <p>Javascript used:</p>
  
  <pre><code>function redirectToHome() {
          var page = 'Home';
          window.location = page;
      }
  </code></pre>
  
  <p>It works from any other page , but not from error page.</p>