Hi,65841535
Pass the parameter using asp-route-XXX
<a asp-page="/Privacy" asp-route-param="12">Go</a>
And in razor view, define the url like:
@page "{param}.html"
Then when going to privacy page, the parameter with the customized url will be showed in view.
About Route convention in razor page, you can check:
razor-pages-conventions
optional-parameters-in-razor-pages-routing
Best Regards,
Jerry Cai
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.