e parameter type and component parameter type must have a question mark (?) symbol at the end. For example:</p>
<pre class="code" language="razor">@page "/optional-path-parameter/{Param1:bool?}"

&lt;h3&gt;OptionalPathParameter&lt;/h3&gt;
&lt;div&gt;Param1 has value? - @Param1.HasValue&lt;/div&gt;

@code {
    [Parameter]
    public bool? Param1 { get; set; }
}</pre>
<h3>Route overloading</h3>
<p>When your parameterized route has the same path with your nested route, it is called route overloading. Assuming