title: node-express too many redirects
body: <p>I've got my routes set up like below</p>
  
  <p>When i navigate to '<a href="http://localhost/" rel="noreferrer">http://localhost/</a>' i get an error saying 'localhost redirected you too many times' and the URL of the page (showing in the URL bar of the browser) is <a href="http://localhost/!/dashboard" rel="noreferrer">http://localhost/!/dashboard</a> - so it does look like it is being redirected, but i cannot see why it's getting stuck in an infinite loop  </p>
  
  <pre><code> // Public Routes
   app.use('/', function(req,res){
        res.redirect('/!/dashboard');
   });
   app.use('/login', routes.login);
   app.use('/!/dashboard', isLoggedIn, routes.dashboard);
  
  // Check If Logged In
  function isLoggedIn(req,res,next){
      if (req.isAuthenticated()){
        return next();
      } else {
        res.redirect('/login');
      }
  };
  </code></pre>