I\'m trying to set the Default URL of my MVC application to a view within an area of my application. The area is called \"Common\", the controller \"
What you have to do is:
Remove Default Route from global.asax.cs
//// default route map will be create under area
//routes.MapRoute(
// name: "Default",
// url: "{controller}/{action}/{id}",
// defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
//);
Update SecurityAreaRegistration.cs in area Common
Add following route mapping:
context.MapRoute(
"Default",
"",
new { controller = "Home", action = "Index", id = "" }
);