❔ Simple url parameter not working in blazor wasm???

PPatrickG2/9/2023
I have a page with routes:
@page "/Administration/Security/UserAccounts"
@page "/Administration/Security/UserAccounts/{id?}"

first route works but if I use
NavigationManager.NavigateTo($"/Administration/Security/UserAccounts/1");

I get a message saying unable to cast parameter?????

I set up my parameter as a long
@code {
[Parameter]
public long? Id { get; set; }
}
i tried with an int too same thing
I also tried
@page "/Administration/Security/UserAccounts/{id}"
without a question mark
NNinjaOla2/9/2023
PPatrickG2/9/2023
oh yea {Id:long?} worked thx
AAccord2/10/2023
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.