I have a area register routing:
public override void RegisterArea(AreaRegistrationContext context)
{
context.MapRoute(
"MyArea_default",
"MyArea/{action}/{id}",
new { controller = "Home", action = "Index", id = UrlParameter.Optional },
namespaces: new string[] { "market.Areas.MyArea.Controllers" }
);
}
Its working as this, its ok:
localhost:MyArea/ActionName
But I hit F5 (in visual studio) when selected a specific view then url is:
localhost:MyArea/Home/ActionName
So how can work without controller name in url, when I hit f5 if a specific view selected?