title: How to redirect user after successful login?
body: <p>Update:
  After implementing the below suggestion by Rob Sedgwick, it has become apparent that the redirect only works when the user manually "F5" refreshers the browser (Chrome). What I need to achieve is that this happens automatically in the code so the redirect happens without the user having to hot refresh. Thanks for help with this last part.</p>
  
  <p>At the moment ManageTodosView from what I understand is the first action after the user has been logged in. It prints a list of to do items set up by the user. A working example can be found here <a href="http://parseplatform.github.io/Todo/" rel="nofollow">http://parseplatform.github.io/Todo/</a> and the code is <a href="https://github.com/ParsePlatform/Todo" rel="nofollow">https://github.com/ParsePlatform/Todo</a></p>
  
  <p>I'm using to code to really get user logins to work, I'm not to worries about what the output of the rest of the code is because the long term plan will be to remove it, for the time being its helpful to keep in place to show that the app functioning correctly.</p>
  
  <p>I'm using <a href="https://github.com/ParsePlatform/Todo" rel="nofollow">this code</a> as a base to build a web app. At the moment, once the user is logged in, they are displayed data on the same page. </p>
  
  <p>I want to be able to change this so that after they login, the user is redirected to a different page and the information is then displayed to them there. </p>
  
  <p>The reason for this is that the index page is just a landing/login page and I want to redirect them to a more structured HTML page with menus, etc.</p>
  
  <p>Within the JS code, do I just put in a redirect, something like:</p>
  
  <pre><code>self.location="top.htm";
  </code></pre>
  
  <p>to this area of the code?</p>
  
  <pre><code>// The main view for the app
    var AppView = Parse.View.extend({
      // Instead of generating a new element, bind to the existing skeleton of
      // the App already present in the HTML.
      el: $("#todoapp"),
  
      initialize: function() {
        this.render();
      },
  
      render: function() {
        if (Parse.User.current()) {
          new ManageTodosView();
        } else {
          new LogInView();
        }
      }
    });
  </code></pre>
  
  <p>I have added the JS code to this <a href="http://jsfiddle.net/Dano007/y62SL/" rel="nofollow">JSFiddle</a></p>