In MVC, I think we used @Html.Url()
to get the URL of a page from the markup. In Razor Pages, this no longer appears to be available.
Razor Pages has some great tag helpers that help create page links. But what if you want a page URL, such as from JavaScript? Does Razor Pages have any tools for getting the URL string?