Pass a parameter to another page from a button

I am trying to pass a parameter to another page but the result is page not found.
my code on the button:

in the code section:
private void GoToAnotherPageWithParameter(int parameterValue)
{
NavigationManager.NavigateTo($"/attendances/{parameterValue}");
}
in the target page:
@page "/attendances/{{parameterValue}}"
and in the code for the target page:
[Parameter]
public int parameterValue { get; set; }
what am i doing wrong?

Hi @Fady1956,

Your route definition is wrong. Please check the official documentation how to specify route parameters.

thanks, that was helpfull.
I added int to the parameter on the target page and it worked fine.