I am trying to create a special ASP.NET Core tag helper for a tag that supports the asp-hash attribute. This attribute is supposed to simply add the supplied value to the end of the href attribute.
<a asp-controller="Home" asp-action="Index" asp-hash="mainDiv">some link</a>
will generate:
<a href="http://localhost/home/index#mainDiv">some link</a>
I found the source code for AnchorTagHelper in this section in the asp.net github repo , but I cannot find a way to add content to the end of the generated href .
VSG24 source share