Skip to content
This repository

Query parameter ?action=somevalue will get 404 error #3652

Closed
atans opened this Issue · 4 comments

4 participants

AS Abdul Malik Ikhsan Matthew Weier O'Phinney Ralph Schindler
AS

module.config.php

array(
    'routes' => array(
        'application' => array(
            'type' => 'segment',
            'options' => array(
                'route' => '/application[/]',
                'defaults' => array(
                    'controller' => ...
                ),
            ),
            'may_terminate' => true,
            'child_routes' => array(
                'query' => array(
                    'type' => 'query',
                ),
            ),
        ),
    ),
);

Get this error when visit /application/?action=something

A 404 error occurred
Page not found.

The requested controller was unable to dispatch the request.

Controller:
    Account\Controller\Index

No Exception available
Abdul Malik Ikhsan

You should define what route Query is like the following :

                      'query' => array(
                                'type' => 'Query',
                                'options' => array(
                                    'route' => '?[:keyword]&[:category]&[:is_mine]'
                                ),
                            ),
Matthew Weier O'Phinney
AS

@weierophinney
Yes, weierophinney.
In this problem, I should change action=something to otherKey=something to fix it.

Matthew Weier O'Phinney

#3778 Should address this.

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

Merge branch 'weierophinney-hotfix/3711'
a3df97c
Deleted user Unknown referenced this issue from a commit
Ralph Schindler 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.