I'm porting an old WebForms application to .NET Core Razor Pages.
I have a few cases where I'd like to retain the old URLs. I have a Razor Page called Resources/CharClass, but I'd like the URL to be Resources/CharClass.aspx.
I tried the following, but it doesn't route to the desired page.
@page "{title=CharClass.aspx}"
@model TestRazorPages.Pages.Resources.CharClassModel
@{
ViewData["Title"] = "CharClass";
}
<h1>CharClass</h1>