I have `
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.LowercaseUrls = true;
//routes.Add(new SubdomainRoute());
routes.MapRoute("Default", "{controller}/{action}", new
{
controller = "Home",
action = "Index"
});
routes.MapMvcAttributeRoutes();
}
I which governs a lot of routes that the default template of mvc depends on (menu, account, registration etc)
I want to try to change /home/contact to simply /contact, so I did the logical thing by defining (HomeController)
[Route("about", Name = "About")]
public ActionResult About()
{...}
This does not fire, however if i comment out the first part of the code, then this code is called.