Ignore Page property

If I've created a page property, similar to the below. It enables me to visit ............./test/1 and pass the parameter 1

But now I can't visit ............./test without a parameter, is this correct? and is there a way around it?

Thanks,
Matt

Hi @Matthew_Osment,

Page parameters cannot be optional (restriction imposed by the Angular Router).

What you can do instead is use Execute Code sessionStorage.setItem("a", "1") before navigating to the Test page. Then in the Load event of the Test page use Set Property with Name a and Value sessionStorage.getItem("a") in the page itself. This will emulate optional parameters.

Thanks for the quick response @korchev