I am working with asp.net core razor pages. I remember a years ago working with MVC, I was able to redirect to a page with querystring without the question mark, but a slash instead.
http://www.exampletest.com/contact/mike@gmail.com
Now in with razor pages, the URL is back to looking like...
http://www.exampletext.com/contact?ID=mike@gmail.com
Is there a way to once again get the querystring with a slash instead of question mark, like before?
My code is as follows:
<a asp-page="Index" asp-route-id="mike@gmail.com">
@Html.DisplayFor(m => stock.Symbol)
</a>
The Index.cshtml page is in the "contact" directory.