I have an ASP.NET Core 9.0 Razor pages application.
In my application I generate navigation URLs using Url.Page method.
However if I'm currently on a page which has additional parameters (for example /Report/2025/10) then the Url.Page("Report") will return /Report/2025/10.
I would like to get the 'clean' URL: (/Report) without current parameters.
Is this possible? I've tried setting the values parameter to null or empty object (new {}) but it seems to be ignoring this.
Note: my parameters are optional so the page will work even without them.