I have an area called Admin, on one of my pages in this area, I want to go to views located outside my area, in fact it is not in any area, using HTML helpers that I could go empty for this like this:
@Html.ActionLink(item.ArticleTitle, "Details", new { id = item.ArticleId,title=item.ArticleTitle.Replace(' ', '-'), Area = "" })
But when using the tag helper, passing empty does not work:
<a asp-action="Details" asp-route-area="" asp-route-id="@item.ArticleId" asp-route-title="@item.ArticleTitle.Replace(' ', '-')" class="btn btn-default">Detail</a>
It is worth noting that I have already seen this question , but my question specifically refers to the area so that it takes me to the root of the site, outside the current area, and I know that I can use a regular URL, but I was curious can this be done using helper tags.
source share