URL writing tips for ASP.NET MVC

I happened upon the following code in a recent project for one of our ASP.NET MVC web applications today: <a href=”/widget/show/<%=Model.ProductId%>/<%= Model.ProductName.ToUrlSlug() %>“><%=Model.ProductName></a> This line of code works, in that it does what it’s supposed to; but it’s brittle. Like Ginger snaps brittle. Let’s imagine we have a route for this action already set up: routes.MapRoute(     “showWidget”,     “/widget/show/{productId}/{*productName}”, […]