>&lt;Router AppAssembly="@typeof(Program).Assembly" PreferExactMatches="@true"&gt;
    &lt;Found Context="routeData"&gt;
        &lt;AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)"&gt;
            &lt;NotAuthorized&gt;
                You are not authorized.
            &lt;/NotAuthorized&gt;
            &lt;Authorizing&gt;
                Authorizing in process...
            &lt;/Authorizing&gt;
        &lt;/AuthorizeRouteView&gt;
    &lt;/Found&gt;
    &lt;NotFound&gt;
     