@using System.Reflection @using QuantEngine.Web.Client.Pages @using Microsoft.AspNetCore.Components.Routing
@code { private async Task OnNavigateAsync(Microsoft.AspNetCore.Components.Routing.NavigationContext context) { // /Account/* paths are Razor Pages, not Blazor components // Force browser navigation instead of Blazor routing if (context.Path.StartsWith("Account/", StringComparison.OrdinalIgnoreCase) || context.Path.StartsWith("/Account/", StringComparison.OrdinalIgnoreCase)) { // Prevent Blazor from handling this route // Force a full page reload via browser await Task.CompletedTask; // This triggers browser to make a new request, bypassing Blazor } else { await Task.CompletedTask; } } }