TreeRoute icon indicating copy to clipboard operation
TreeRoute copied to clipboard

Dynamic route bug

Open reinir opened this issue 9 years ago • 0 comments

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.

reinir avatar Sep 07 '16 19:09 reinir