I am following this msdn example Add Column Sort Links to the Students Index Page
And exactly like the example am trying to add links to my current page with some additional query parameters.
While using (exactly as the msdn example)
<a asp-action="Index" asp-route-sort="foo">Link</a>
The query parameter is not generated. The link i get is the same as my current url.
If i add the controller also on the tag helper , everything works fine.
<a asp-controller="Clients" asp-action="Index" asp-route-sort="foo">Link</a>
And i get