From 7c9f3b1630ac57150c3608bd6ba13013eebd0900 Mon Sep 17 00:00:00 2001 From: Daniel Harvey Date: Mon, 18 May 2026 23:14:15 -0400 Subject: [PATCH] fix(client): force server reload for /account/* routes unknown to WASM router AuthBlocksWeb pages live in a server-only assembly not bundled in the WASM client. When InteractiveAuto switches routing to WASM, /account/login has no matching component and shows NotFound. Routes.razor now intercepts NotFound for /account/* paths and forces a full-page reload to the server router, which knows the real login page via AddAdditionalAssemblies. --- DeepDrftWeb.Client/Routes.razor | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/DeepDrftWeb.Client/Routes.razor b/DeepDrftWeb.Client/Routes.razor index 8b95b94..12510a1 100644 --- a/DeepDrftWeb.Client/Routes.razor +++ b/DeepDrftWeb.Client/Routes.razor @@ -10,4 +10,15 @@ + + @{ + // Routes owned by server-side assemblies (e.g. /account/*) are not visible to the + // WASM router. Force a full-page reload so the server router handles them instead. + var path = new Uri(NavigationManager.Uri).AbsolutePath; + if (path.StartsWith("/account", StringComparison.OrdinalIgnoreCase)) + { + NavigationManager.NavigateTo(NavigationManager.Uri, forceLoad: true); + } + } +