The Blazor fallback logic always falls back to the specified route even if the original route doesn't match any routable components. This can be problematic in some cases, like in ASP.NET to ASP.NET Core app migration scenarios where you want to allow any unhandled requests to be proxied elsewhere. The Cocoon project currently uses some custom logic to identify all of the routable components and then only falls back for the component routes. We'll need something similar to support migrating to Blazor in our own incremental migration support based on YARP. We could provide some helpers that make this logic easier.
The Blazor fallback logic always falls back to the specified route even if the original route doesn't match any routable components. This can be problematic in some cases, like in ASP.NET to ASP.NET Core app migration scenarios where you want to allow any unhandled requests to be proxied elsewhere. The Cocoon project currently uses some custom logic to identify all of the routable components and then only falls back for the component routes. We'll need something similar to support migrating to Blazor in our own incremental migration support based on YARP. We could provide some helpers that make this logic easier.