Closed Daniel15 closed 10 years ago
This has been fixed in the 1.1.7 release. Thanks for reporting!
Just ran into the issue myself. If I understand correctly, the fix is fine if the route parameters do not match the route. When the route parameters do match the route, RouteJs will generate an incorrect URL.
There's no way for RouteJs to fix this, but perhaps a console warning can be generated when a route with custom constraints is used? It would make developers aware so that they can try to work around the issue.
I could be wrong entirely though, I'll see if I can create a proof of concept where the fix causes an issue.
Yeah, please create another issue if you can make a self-contained proof of concept. I don't use custom constraints myself, and haven't really seem them very widely used.
Received via email: