Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Segment route bug #2504

Closed
zfbot opened this Issue · 7 comments

2 participants

@zfbot
Owner

Jira Information

Original Issue: ZF2-408
Issue Type: Bug
Reporter: outeredge
Created: 07/18/12
Assignee: DASPRiD
Components: Zend\Mvc\Router

Description

We have this Segment route configured;

/contact[/:action[/:mode]][/page/:page]

Which works OK for:
but NOT for:

I assume this is a bug in the Segment route?

@zfbot
Owner

(Originally posted by: DASPRiD on 07/19/12)

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

@zfbot
Owner

(Originally posted by: outeredge on 07/19/12)

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

@zfbot
Owner

(Originally posted by: DASPRiD on 07/19/12)

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

@zfbot
Owner

(Originally posted by: outeredge on 07/19/12)

                 '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',
                                    ),
                                ),
                            ),
@zfbot
Owner

(Originally posted by: DASPRiD on 07/19/12)

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

@zfbot
Owner

This issue was ported from the ZF2 Jira Issue Tracker at
http://framework.zend.com/issues/browse/ZF2-408

Known GitHub users mentioned in the original message or comment:
@outeredge, @DASPRiD

@DASPRiD DASPRiD was assigned
@DASPRiD
Collaborator

This bug was already resolved.

@DASPRiD DASPRiD closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.