Skip to content

Dynamic route bug #11

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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