I’ve just noticed that there is a new property in .NET Framework 4.5. Works great!
RouteCollection.LowercaseUrls
Set LowercaseUrls to true
public static void RegisterRoutes(RouteCollection routes)
{
routes.LowercaseUrls = true;
...
}
Create a link
@Html.ActionLink("Log in", "Login", "Account")
That will create awesome, lowercase url 🙂
<a href="https://stackoverflow.com/account/login">Log in</a>