ZF2-408: Segment route bug


We have this Segment route configured;


Which works OK for:

but NOT for: 

I assume this is a bug in the Segment route?


Could you please be more specific than just "doesn't work"?

Sorry, it results in a 404 Error (The requested controller was unable to dispatch the request.)

Could you please post the complete route definition, including options?

                 'child_routes' => array(
                    'admin' => array(
                        'type' => 'Literal',
                        'options' => array(
                            'route'    => '/admin',
                            'defaults' => array(
                                'controller' => 'Application\Controller\AdminController',
                                'action'    => 'index'
                        'may_terminate' => true,
                        'child_routes' => array(
                            'contact' => array(
                                'type' => 'Segment',
                                'options' => array(
                                    'route'    => '/contact[/:action[/:mode]][/page/:page]',
                                    'constraints' => array(
                                        'mode' => 'all',
                                        'id' => '[1-9][0-9]*',
                                        'page' => '[1-9][0-9]*',
                                    'defaults' => array(
                                        'controller' => 'Application\Controller\ContactController',
                                        'action'     => 'list',

I seeā€¦ I think I know where this bug comes from (it is already reported). Will look into it somewhen around this week.

This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit: