blazor implementing 404 page

blazor web app .net 8 not triggering <NotFound> tag how to fix it ?
@using BlazorApp33.Components.Account.Shared
<Router AppAssembly="@typeof(Program).Assembly">
    <Found Context="routeData">
        <AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(Layout.MainLayout)">
            <NotAuthorized>
                <RedirectToLogin />
            </NotAuthorized>
        </AuthorizeRouteView>
        <FocusOnNavigate RouteData="@routeData" Selector="h1" />
    </Found>
    <NotFound>
        <h1>404 Not Found</h1>
    </NotFound>
</Router>
Was this page helpful?