i ran in the problem where I want to define a route to a view of a plugin. ASP.NET MVC 5 do not let me define a route with the named parameter ?plugin="LoginModule. I have the same problem by defining the LoginPath within the Startup.ConfigureAuth method.
AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
LoginPath = new PathString("/Login/Index?plugin=LoginModule") // this does not work
The MVC aplication would not start with this definition, but without the named parameter the controller cannot be found by the BundleRuntimeControllerFactory.
Does anyone know how to deal with these issues.