Hi,
I have a call that looks like this:
<%= Html.RouteLink(item.displayName, "DisplayCategory", new { category = Html.Encode(item.displayName), subcat = item.searchName }) %>
and I'm getting html that looks like this:
http://localhost:1485/Home/ShowCategory/Electronics%20&%20Photography?subcat=electronics-photo
Why does the URL end with "?subcat=electronics-photo" rather than "/electronics-photo" ? Is it somehow related to the route definition?
routes.MapRoute(
"DisplayCategory",
"Home/ShowCategory/{category}/{tags}",
new { controller = "Home", action = "ShowCategory", category = "", tags = "" }
);
Any clues would be appreciated!