Creating an AnchorTag in a Razor page table. The table cell with the OrderNbr needs to be a link to the website (e.g. https://host/main?OrderNbr=012345) with the order using the routevalue of the OrderNbr.
Using asp-host tag helper and getting unexpected results:
@Html.ActionLink(item.OrderNbr, null, null, "https", "host/main", null, Model.routeValues, new Dictionary<string, string> {{"target","_blank"}} )
I'm using ActionLink to create the anchor tag in a cshtml razor page table.
expected result:
<a href="https://host/main?routeValue1&?routeValue2" target="_blank">Order Number Value</a>
actual result:
<a href="https://host/main/Area/Page/Details?routeValue1&?routeValue2" target="_blank">Order Number Value</a>
My issue is that if creates it fine EXCEPT that it appends the page route to the host address specified which I didn't expect? The docs do not show this so is this a bug?
Thanks for any insights and assistance.