I add a route named default with the pattern
{controller=Assets}/{action=Index}/{id?}
but I get an http 404 "Not Found" error.
If I type in /Assets in the browser, it finds the view, it's just on the first request.
This issue occurred after installing VS 2026 and the latest SDKs.
Any ideas?
Configuring WebApplicationBuilder:
_ = builder.Services.AddControllersWithViews(mvcOptions);
Adding the route named default:
app.MapControllerRoute(ruteName, pattern);
Edit: fixed it by adding Assets as start url in launch profiles.