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); + } + } +