title: $routeProvider not triggered after login redirect
body: <p>I have a basic Django app (Django 1.7) with an AngularJS (1.2.19) frontend using basic routing. When first accessing the site, the routing loads properly and displays the content in the ng-view. However, if I go to /login and successfully log into the site (default Django login page), I am redirected to the home page and the routing fails to load in the ng-view. I have to reload the page (usually twice) or clear the cache to get the content in my ng-view to load. Even clicking on the links in my template fail to display the ng-view content. How can I force the content to load in my ng-view after a redirect?</p>
  
  <p>home.html</p>
  
  <pre><code>&lt;html&gt;
    &lt;head&gt;
      &lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.19/angular.js"&gt;&lt;/script&gt;
      &lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.19/angular-route.js"&gt;&lt;/script&gt;
    &lt;/head&gt;
    &lt;body ng-app="testyApp"&gt;
      &lt;h1&gt;Routing Test&lt;/h1&gt;
      &lt;ul&gt;
        &lt;li&gt;&lt;a href="#/"&gt;Default&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#/test"&gt;Other&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
  
      &lt;div ng-view&gt;&lt;/div&gt;
  
      &lt;script type="text/javascript" src="/static/main.js"&gt;&lt;/script&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>main.js</p>
  
  <pre><code>angular.module('testyApp', ['ngRoute'])
    .config(['$routeProvider', function($routeProvider) {
      $routeProvider.when('/', {
        template:'&lt;h3&gt;Home page&lt;/h3&gt;'
      })
      .when('/test', {
        template:'&lt;h3&gt;Other page&lt;/h3&gt;'
      })
      .otherwise({redirectTo: '/'});
    }]);
  </code></pre>
  
  <p>I don't think these files are necessary, but here they are just in case.</p>
  
  <p>urls.py</p>
  
  <pre><code>from django.conf.urls import patterns, include, url
  from app_test.views import home
  
  urlpatterns = patterns('',
      url(r'^$', 'app_test.views.home', name='home'),
      url(r'^login/$', 'django.contrib.auth.views.login', {
              'template_name': 'login.html'}),
  )
  </code></pre>
  
  <p>views.py</p>
  
  <pre><code>from django.shortcuts import render
  
  
  def home(request):
      return render(request, 'home.html')
  </code></pre>
  
  <p>login.html</p>
  
  <pre><code>{% extends 'base.html' %}
  {% block header_text %}Login{% endblock %}
  {% block content %}
  &lt;form name="loginForm" 
        method="post" 
        action="{% url 'django.contrib.auth.views.login' %}"&gt;
      {% csrf_token %}
      {% for field in form %}
      &lt;div&gt;
        {{ field.label_tag }}
        &lt;br&gt;
        {{ field }}
      &lt;/div&gt;
      {% endfor %}
      &lt;div&gt;
        &lt;input type="submit" 
               value="Login"
               id="id_submit"&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  {% endblock %}
  </code></pre>
  
  <p><strong>more info</strong>:
  After some more indepth testing the issue seems isolated to using Chrome as my testing browser. With Firefox and Safari (didn't test Opera) the ng-view loads as expected following the redirect from the login page. I have no idea as to why this is the case. Any explanations would be appreciated.</p>