Remove Trailing Slash in ASP.NET MVC 4 Route to Application Root
In my ASP.NET MVC 4 application's RouteConfig file, I have registered the following default route: routes.MapRoute("Default", "{controller}/{action}/{id}", new { controller = "home", action = "index", id = UrlParameter.Optional }); Now, in my Razor views, I want to generate a URL to my application's root like that: <a href="@Url.Action("index", "home")">Home</a> The generated URL includes a trailing slash; clicking the link thus opens the page localhost/IISApplicationName /. However, I want the URL not to contain the trailing slash so that the URL is localhost/IISApplicationName . Generating