Michal Charemza wrote: > > <route pattern="^/schedule/" module="Schedule" action="ShowSchedule" > name="Schedule"> > <route pattern="^editlinks/$" module="Related" action="EditRelated" > name="EditRelatedSchedule" /> > </route> > > I've tried various combination of "^" and "$" in the patterns but I've > not managed to force paths like: > > /schedule/gibberish > > to result in a 404 error. How can I force a 404 error in these sorts > of cases? >
The problem here is the parent route matches /schedule/anything_here AND selects an action. Move the action to a child route and you should be fine. <route pattern="^/schedule" module="Schedule" name="Schedule"> <route pattern="^$" action="ShowSchedule" /> <route pattern="^editlinks/$" ... /> </route> -- Veikko Mäkinen [email protected] 044 5910 413 http://blog.veikko.fi _______________________________________________ users mailing list [email protected] http://lists.agavi.org/mailman/listinfo/users
