Hello @mc !
If you are using Razor Pages in ASP.NET Core, you can specify the route for a page using the @page
directive. To set the route for index.html
to the root URL, and the route for solution.html
to /Solution
, you can use the following @page
directives in the respective Razor Pages:
For index.html
:
@page "/"
This sets the route for index.html
to the root URL.
For solution.html
:
@page "/Solution"
This sets the route for solution.html
to /Solution
.
You can add these directives at the top of your Razor Pages
Assisting Source: ChatGPT Subscription
Kindly mark the answer as Accepted and Upvote in case it helped or post your feedback to help !
Regards