<Router AppAssembly="typeof(App).Assembly"
        AdditionalAssemblies="new[] { typeof(AuthBlocksWeb._Imports).Assembly }"
        NotFoundPage="typeof(NotFound)">
    <Found Context="routeData">
        <AuthorizeRouteView RouteData="routeData" 
                            DefaultLayout="typeof(Layout.CmsLayout)">
            <NotAuthorized Context="authState">
                @if (authState.User.Identity?.IsAuthenticated == true)
                {
                    <RedirectToAccessDenied />
                }
                else
                {
                    <RedirectToLogin />
                }
            </NotAuthorized>
        </AuthorizeRouteView>
        <FocusOnNavigate RouteData="routeData" Selector="h1" />
    </Found>
</Router>
