diff --git a/src/dotnet/QuantEngine.Web/Program.cs b/src/dotnet/QuantEngine.Web/Program.cs index e8c9681d..691ae83e 100644 --- a/src/dotnet/QuantEngine.Web/Program.cs +++ b/src/dotnet/QuantEngine.Web/Program.cs @@ -192,11 +192,11 @@ try Log.Warning("Hangfire setup failed: {Message}", ex.Message); } - // Root redirect: unauthenticated → /Account/Login, authenticated → /Admin/Dashboard + // Root redirect: unauthenticated → /Account/Login, authenticated → Vue 3 SPA /templates app.MapGet("/", context => { if (context.User?.Identity?.IsAuthenticated ?? false) - context.Response.Redirect("/Admin/Dashboard"); + context.Response.Redirect("/templates"); else context.Response.Redirect("/Account/Login"); return Task.CompletedTask; @@ -210,6 +210,8 @@ try }); app.MapRazorPages(); + app.MapFallbackToFile("index.html"); + app.Run(); }