Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

If route has child routes and in URL has arbitrary query like "?lang=de" it does not work #3636

Closed
alex-oleshkevich opened this Issue · 1 comment

3 participants

@alex-oleshkevich

Hi,
The routes:

[...]
'broker' => array (
    'type' => 'Literal (or Segment - no difference)',
    'options' => array (
        'route' => '/app',
        'defaults' => array (
            'controller' => 'App\Controller\Index',
            'action' => 'index',
        ),
    ),
    'may_terminate' => true,
    'child_routes' => array (
        'dashboard' => array (
            'type' => 'Literal',
            'options' => array (
                'route' => '/dashboard',
                'defaults' => array (
                    'controller' => 'App\Controller\Index',
                    'action' => 'dashboard',
                )
            )
        )
    )
)

and URL is: /app?lang=de

The Result:
Zend\ServiceManager\ServiceManager::get was unable to fetch or create an instance for app

The issue appears only if I access the parent node (/app) in case if it has nested routes and URL has custom parameters.

ZF2 version 2.0.6.

How I can fix that?

@weierophinney

This should be fixed with #3778

@ralphschindler ralphschindler closed this issue from a commit
@ralphschindler ralphschindler Closes #3778
Also closes #3711
Also closes #3652
Also closes #3636

Merge branch 'weierophinney-hotfix/3711'
a3df97c
@ghost Unknown referenced this issue from a commit
@ralphschindler ralphschindler Closes #3778
Also closes #3711
Also closes #3652
Also closes #3636

Merge branch 'weierophinney-hotfix/3711'
c30a935
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.