title: ASP.Net MVC - redirecting to route gives Redirect Loop
body: <p>This is probably one of those easy questions..  I'm trying to redirect the user after they've successfully authenticated, or return them back to the login page. But the Success page is on a different route and I can't get the redirection to work..</p>
  
  <p>Here are my routes in Globals.asax:</p>
  
  <pre><code>routes.MapRoute( _
      "Default", _
      "{controller}/{action}/{id}", _
      New With {.controller = "Login", .action = "Index", .id = ""} _
      )
  routes.MapRoute( _
      "Stuff", _
      "{controller}/{action}/{id}", _
      New With {.controller = "Stuff", .action = "Index", .id = ""} _
      )
  </code></pre>
  
  <p>I've got 2 Controllers: <code>LoginController.vb</code> and <code>StuffController.vb</code>.  The <code>Views/Login/Index.aspx</code> file contains a simple form with the code:</p>
  
  <pre><code>&lt;form method="post" action="/Login/Authenticate"&gt;
  </code></pre>
  
  <p>The <code>LoginController</code> contains the following code:</p>
  
  <pre><code>Function Authenticate() As RedirectToRouteResult
      ' authentication code commented out  ;o)
  
      Return RedirectToRoute("Stuff")
  End Function
  </code></pre>
  
  <p>And the StuffController contains the following:</p>
  
  <pre><code>Function Index()
      ' show stuff..
  
      Return View()    ' return /Views/Stuff/Index.aspx
  End Function
  </code></pre>
  
  <p>Here's what I've tried so far:</p>
  
  <ul>
  <li>Function Authenticate()</li>
  <li>Function Authenticate() As ActionResult()</li>
  <li>Function Authenticate() As RedirectToRouteResult()</li>
  </ul>
  
  <p>all of which cause a Redirect Loop timeout in the browser. What am I missing?!</p>