title: Setting window.location.href with Chrome and jquery-mobile will try to load via ajax
body: <p>I have a mobile application that I'm trying to force a redirect to the login page on a 401 ajax call; however what seems to be happening is that jQM is trying to load this via AJAX as the request is sent.</p>
  
  <p>This does work for safari and firefox devices but does not work with Chrome, yet to test on an IE device.</p>
  
  <pre class="lang-js prettyprint-override"><code>$(function() {
    $.ajaxSetup({
      statusCode: {
        401: function() {
          console.debug("User is not authenticated");
          window.location.href = core.getUrl('/login');
        }
      }
    });
  });
  </code></pre>
  
  <p><strong>UPDATE</strong>: Meant that it does not work on chrome, firefox is actually okay.</p>