I am using Html.ActionLink to generate a link.
@Html.ActionLink(item.Text, item.Author.UniqueName, "Author", new { selectedQuoteId = item.QuoteID }, null)
However when I use this method, the generated link is :
http://localhost/Author/aeschylus?selectedQuoteId=1627
But I would like it to be:
http://localhost/Author/aeschylus/1627
My configuration is:
routes.MapRoute( "AuthorQuotes", "Author/{authorUniqueName}/{selectedQuoteId}", new { controller = "AuthorQuotes", action = "Index", authorUniqueName = UrlParameter.Optional, selectedQuoteId = UrlParameter.Optional });
Is this possible to do this with Html.ActionLink ?