Skip to content

Dynamic route bug #11

@reinir

Description

@reinir

I did not expect to find this bug but I checked it many times and I got the same result.

Given these routes:

/route/one
/route/{one}/two
/route/{one}/{two}/three

TreeRoute can resolve this request:

/route/one

Probably because it is a static route.
Unfortunately, TreeRoute can't resolve these requests:

/route/one/two
/route/one/two/three

TreeRoute returns 404 Not Found for both requests.
As a comparison, FastRoute and Symfony Routing can resolve all three requests correctly.

For more information, see Basic Router Test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions