I'm creating a website with a Blazor WASM as the admin, and a Core Razor is the main site. I didnt have any problem so far mixing both, but on the main site I have a Wildcar url, that gets anything "/{*url}" if I enable it the Blazor stop working, it is possible to do it? Here is my Program.cs
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddRazorPages(options =>
{
options.Conventions.AddPageRoute("/Dynamic/index", "{*url}");
});
var app = builder.Build();
// Configure the HTTP request pipeline.
if (!app.Environment.IsDevelopment())
{
app.UseExceptionHandler("/Error");
}
else
{
app.UseWebAssemblyDebugging();
}
app.UseStaticFiles();
app.UseBlazorFrameworkFiles();
app.UseRouting();
app.UseAuthorization();
app.MapRazorPages();
app.MapFallbackToFile("admin/{*path:nonfile}", "admin/index.html");
app.Run();
thanks
I was able to figure it out. this is my code in case someone has the same problem: