I have a problem where I am struggling to capture an invalid event. Consider the following routes/handlers:
route( pattern="/product/:product/client/:client/reports/:reportGroup", target="client.reports.reportGroup.index", name="Client Reports" ).end(); route( pattern="/product/:product/client/:client/reports", target="client.reports", name="Client Reports" ).end(); route( pattern="/product/:product/client/:client", target="client.index", name="Client" ).end();
When I access /product/:product/client/:product/reports/ (with client and product values in lieu of placeholders) everything works as expected. If I try to access /product/:product/client/:client/report (“report” doesn’t exist), I fall back to the 3rd route listed, /product/:product/client/:client, which is not the desired behavior. Shouldn’t an invalid event be fired here, since “report” doesn’t exist as a handler, only “reports”?