Merge branch 'split-redirect-login' into dev

This commit is contained in:
Daniel Harvey
2026-05-20 16:49:59 -04:00
2 changed files with 2 additions and 5 deletions
+1 -5
View File
@@ -3,9 +3,7 @@
<Found Context="routeData"> <Found Context="routeData">
<AuthorizeRouteView RouteData="routeData"> <AuthorizeRouteView RouteData="routeData">
<NotAuthorized> <NotAuthorized>
@{ <RedirectToLogin />
NavigationManager.NavigateTo($"account/login?returnUrl={Uri.EscapeDataString(NavigationManager.Uri)}", forceLoad: true);
}
</NotAuthorized> </NotAuthorized>
</AuthorizeRouteView> </AuthorizeRouteView>
<FocusOnNavigate RouteData="routeData" Selector="h1" /> <FocusOnNavigate RouteData="routeData" Selector="h1" />
@@ -15,5 +13,3 @@
<p role="alert">Sorry, there's nothing at this address.</p> <p role="alert">Sorry, there's nothing at this address.</p>
</NotFound> </NotFound>
</Router> </Router>
@inject NavigationManager NavigationManager
@@ -4,5 +4,6 @@
@using Microsoft.AspNetCore.Components.Web @using Microsoft.AspNetCore.Components.Web
@using static Microsoft.AspNetCore.Components.Web.RenderMode @using static Microsoft.AspNetCore.Components.Web.RenderMode
@using MudBlazor @using MudBlazor
@using AuthBlocksWeb.Components
@using DeepDrftManager @using DeepDrftManager
@using DeepDrftManager.Components @using DeepDrftManager.Components