I am in the process of debugging a routing problem in my MVC 3 application, and I am using the Phil Hacks routing debugger.
I canβt understand where the route marked in yellow below starts from. Every time I run my application with the following request
http://www.mywebsite.com/auth/login?ReturnUrl=/
this route goes first and then gives me a 404 error since I have no index action. As you can see, I set the default routes for using the login action method, but this route is saved.

I have the following route configurations:
AuthAreaRegistration
public class AuthAreaRegistration : AreaRegistration { public override string AreaName { get { return "Auth"; } } public override void RegisterArea(AreaRegistrationContext context) { context.MapRoute( "login", "auth/login/{*returnPath}", new { controller = "Auth", action = "LogIn", id = UrlParameter.Optional } ); context.MapRoute( "Auth_default", "Auth/{controller}/{action}/{id}", new { controller = "Auth", action = "LogIn", id = "" } ); } }
Global.asax (using T4 MVC templates)
public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( "Home", "{controller}/{action}/{id}", MVC.Home.Index(), new { id = UrlParameter.Optional }, new string[] { "MyNamespace.WebUI.Controllers" } ); routes.MapRoute( "Default", "{controller}/{action}/{id}", MVC.Home.Index(), new { id = UrlParameter.Optional }, new string[] { "MyNamespace.WebUI.Controllers" } ); }