Skip to content

Blazor NavigationManager redirect to NotFound if route parameter contains encoded / #52808

@pmpbpl

Description

@pmpbpl

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

NavigationManager redirects to NotFound if route parameter contains encoded '/' instead of requested page.

ex:
/cars/parts%20w%2F%20issue/show

It was working in .net 6. Stops after update to .net8.

Expected Behavior

Navigate to page and bind parameter.

Steps To Reproduce

repo

Exceptions (if any)

No response

.NET Version

.net8.0

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions