Identity UI no longer works after switching to .net core 3 endpoint routing

The Identity UI is implemented using Razor Pages. For endpoint-routing to map these, add a call to MapRazorPages in your UseEndpoints callback:

app.UseEndpoints(endpoints =>
{
    // ...
    endpoints.MapRazorPages();
});