Razor Pages routing with @page The Razor Pages routing using the @page directive seems to rewrite the links.