From f45a0e1f7813017bf38e585c31003ecafd575de9 Mon Sep 17 00:00:00 2001 From: Daniel Harvey Date: Wed, 20 May 2026 16:48:43 -0400 Subject: [PATCH] fix(manager): replace inline NavigateTo in NotAuthorized with AuthBlocksWeb.RedirectToLogin --- DeepDrftManager/Components/Routes.razor | 6 +----- DeepDrftManager/Components/_Imports.razor | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/DeepDrftManager/Components/Routes.razor b/DeepDrftManager/Components/Routes.razor index 0102731..5fc7f1b 100644 --- a/DeepDrftManager/Components/Routes.razor +++ b/DeepDrftManager/Components/Routes.razor @@ -3,9 +3,7 @@ - @{ - NavigationManager.NavigateTo($"account/login?returnUrl={Uri.EscapeDataString(NavigationManager.Uri)}", forceLoad: true); - } + @@ -15,5 +13,3 @@

Sorry, there's nothing at this address.

- -@inject NavigationManager NavigationManager diff --git a/DeepDrftManager/Components/_Imports.razor b/DeepDrftManager/Components/_Imports.razor index d2fb54e..36e7ead 100644 --- a/DeepDrftManager/Components/_Imports.razor +++ b/DeepDrftManager/Components/_Imports.razor @@ -4,5 +4,6 @@ @using Microsoft.AspNetCore.Components.Web @using static Microsoft.AspNetCore.Components.Web.RenderMode @using MudBlazor +@using AuthBlocksWeb.Components @using DeepDrftManager @using DeepDrftManager.Components