fix(manager): replace inline NavigateTo in NotAuthorized with AuthBlocksWeb.RedirectToLogin
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user