-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
URI Routing bug #1354
Comments
This sounds like correct behavior to me. This is a support question/problem, and should be raised on the forum, thanks. |
the order has changed, the result has not changed, until the update worked properly, this is clearly an error |
Ok - i will leave this one for Lonnie. |
note that the url is the same, only the methods differ |
You say "after the upgrade" ... what are you referring to? |
There was previously an error with correctly recognizing methods when an |
btw, a quick unit test case returns "index" as the method, regardless of the order, and with the route collections's verb set to 'post'. |
I would guess PR1285 on Oct 2nd, changed RouteCollection |
Adding the above to RouterTest, it fails, with the actual method returned "index". |
Rolled back this fix and it all worked. |
I'm going to guess we need to swap the order of the values in the array_merge, but not sure when I'll have a chance to look at that currently. Work is keeping me going with long days. :( |
hmm - if referring to the merge in getRoutes(), swapping the order breaks testMatchesCorrectlyWithMixedVerbs() but the testCorrectOrder() I showed above works. |
Just merged a fix for this, fingers crossed. Passes both the tests from #1285 and the new one I added above. |
@demortx Can you check if this fix works for you? Thanks. |
I am interpreting the lack of response as being a thumbs up for the fix. |
After the upgrade, it stopped working, $routes->post
Example if declared
$ routes-> add ('auth', 'Main :: index');
$ routes-> post ('auth', 'Main :: auth_post');
That post stops working, always redirects to
$routes->add('auth', 'Main :: index');
ignoring
$routes->post('auth', 'Main :: auth_post');
The text was updated successfully, but these errors were encountered: