Optional variable not working as expected/it did previously
This route used to work in a previous version /client/[a:Action]?/[:ID]?/[**:trailing]? Accessing the route without an action where if Action wasn't defined it would still find the route eg http://altorouter.com/client now it only works if you have an action http://altorouter.com/client/list
Adding a / on line 210 so it does a strpos of '[' fixes this issue 210: } elseif (($position = strpos($route, '/[')) === false) {
Try to use the http://altorouter.com/client/ route. Notice the trailing slash.
I tired that too, it didn't work... but both work with my suggested code
@geckoeffect Could you post your routes?
That's interesting. Can you create a PR and then add a test for this behavior?