Relative Content

Tag Archive for blazor.net-8.0

Blazor isn’t using my component for redirecting unauthorized users

I’m trying to implement authorization in a .NET 8 Blazor server-side app. When a user isn’t logged in and tries to access a page that requires authorization, I want to redirect to the login page. I did the same thing the default Blazor Web App template with “Individual Accounts” does but used a different URI. But my URI is ignored and the redirect goes to /Account/Login. Am I misinterpreting what <NotAuthorized> does?