I'm working on an ASP.NET 5 Razor Pages project and I'm facing an issue with an anchor tag for a page in an area having empty href attribute. The structure of the project is as follows:
Project Areas Admin Pages PhotoSession List Edit
In the List page and want to have a link for each photo session pointing to its Edit page. The Edit page is defined as
The anchor tag is defined as
<a asp-page="/PhotoSession/Edit" asp-route-id="photoSession.Id" class="btn bg-green btn-flat">Edit photo session</a>
But the generated html is:
<a class="btn bg-green btn-flat" href="">Edit photo session</a>
Adding asp-area="Admin" doesn't help. What could be the issue?