Skip to content

Provide a more intelligent routing fallback for Blazor apps that only falls back if the route matches a routable component #42003

@danroth27

Description

@danroth27

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority:2Work that is important, but not critical for the releasearea-blazorIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-blazor-routingFeatures related to routing in Blazor applications

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions