-
Notifications
You must be signed in to change notification settings - Fork 122
Request not matching route with defaults #324
Comments
I'll look at it. |
I suspect this might have worked by chance in the previous code. I don't see tests for this, I'm guessing that /{controller=Home}/{action=index} or similar would not have worked in the previous version |
I think I found the issue and a potential fix for it. We are not constructing the tree properly, when we have default parameters we don't put the route in the matches list of previous nodes on the tree. I need to look deeper into the issue to make sure all scenarios are covered. I'll add more tests regarding default values, but I'm almost sure that in the previous version of the code it worked because we only tested one default parameter. /cc @rynowak |
how can we write somthing like this |
Hi, it looks like you are posting on a closed issue/PR/commit! We're very likely to lose track of your bug/feedback/question unless you:
Thanks! |
A request like
/api/test
is resulting in 404. A request like/api/test/hello
works fine as expected.This is working fine with RC2 final packages, so looks like a regression
@rynowak
The text was updated successfully, but these errors were encountered: