Bug #21633 Accepted

Template routes with static segments and require all set to ‘no’ error.

Version: 4.0.0 Reporter: Robin Sowell

Given this route: /add/{url_title:alpha_dash} with require all ‘no’ I would expect http://mysite.com/index.php/add to match it (assuming the first route in order).  It doesn’t.  It matches if all segments are present: http://mysite.com/index.php/add/something - but not if that second segment is missing.

This can be worked around with a more complex regex:

/{company:alpha_dash}/{seg2:regex[(gallery)]}/{page:pagination}
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases