I am trying to switch our links to T4MVC , and I have a little problem with the parameters, t part of the action signature. We have a route that looks something like this:
http://www.mydomain.com/{fooKey►/{barKey}/{barID}
==> leads to BarController.Details (barID).
fooKey and barKey are only added to links for SEO purposes. (since bar is a child of foo, and we want to represent this hierarchy in the url)
So far we have used
<% =Html.ActionLink(bar.Name, "Details", "Bar", new {barID = bar.ID, fooKey = bar.Foo.Key, barKey = bar.Key}, null)%>
And that will lead us to BarController.Details (barID), storing fooKey and barKey in the URL.
Now that we started with T4MVC, we tried to change it to
<% =Html.ActionLink(bar.Name, MVC.Bar.Details(bar.ID), null)%>
Since barKey and fooKey are not part of the signature of the Details action, they no longer appear in the URL.
?