90e07ea9d7
Routes needs no render mode — layouts declare the interactive mode. MainLayout (WASM) and CmsLayout (Server) are top-level islands with no conflicting parent render mode. DefaultLayout removed so AuthBlocks auth pages render self-contained without being forced into the WASM layout.
20 lines
830 B
Plaintext
20 lines
830 B
Plaintext
<Router AppAssembly="typeof(App).Assembly"
|
|
AdditionalAssemblies="new[] { typeof(DeepDrftWeb.Client._Imports).Assembly, typeof(DeepDrftCms._Imports).Assembly, typeof(AuthBlocksWeb._Imports).Assembly }">
|
|
<Found Context="routeData">
|
|
<AuthorizeRouteView RouteData="routeData">
|
|
<NotAuthorized>
|
|
@{
|
|
NavigationManager.NavigateTo($"account/login?returnUrl={Uri.EscapeDataString(NavigationManager.Uri)}", forceLoad: true);
|
|
}
|
|
</NotAuthorized>
|
|
</AuthorizeRouteView>
|
|
<FocusOnNavigate RouteData="routeData" Selector="h1" />
|
|
</Found>
|
|
<NotFound>
|
|
<PageTitle>Not found</PageTitle>
|
|
<p role="alert">Sorry, there's nothing at this address.</p>
|
|
</NotFound>
|
|
</Router>
|
|
|
|
@inject NavigationManager NavigationManager
|