When clicking on an controller of ASP.NET MVC area it is appending the {area}/{controller} to the {area} again

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


When clicking on an controller of ASP.NET MVC area it is appending the {area}/{controller} to the {area} again



Area Structure
Area
Admin
Section
Part
etc.
Here is my Area routing


public override void RegisterArea(AreaRegistrationContext context)
{
context.MapRoute(
"Admin_default",
"Admin/{controller}/{action}/{id}",
new { action = "Index", id = UrlParameter.Optional }
);
}



When clicking on Section it is routing correctly



http://localhost:50007/Admin/Section



Now on the same page if I route to Part the url is like below



http://localhost:50007/Admin/Admin/Part









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Arduino Mega cannot recieve any sketches, stk500_recv() programmer is not responding

Visual Studio Code: How to configure includePath for better IntelliSense results

Future solutions