Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Fix the controller plugin PostRedirectGet wrong redirection (in MVC) #4561

Conversation

noopable
Copy link
Contributor

Using segment route with 'NAMESPACE' and ':controller', the PRG plugin with no params redirects to the wrong url.
Relative to the behavior of ModuleRouteListener.

relative: #2866

@noopable
Copy link
Contributor Author

note:
BUILD FAILED
/home/travis/build/zendframework/zf2/build.xml:15: Can't get http://cs.sensiolabs.org/get/php-cs-fixer.phar to /home/travis/build/zendframework/zf2/php-cs-fixer.phar

@@ -95,12 +95,15 @@ protected function redirect($redirect, $redirectToUrl)
{
$controller = $this->getController();
$params = array();
$options = array();
$reuseMatchedParams = false;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please align all the variables :)

    $controller          = $this->getController();
    $params              = array();
    $options             = array();
    $reuseMatchedParams  = false;

@noopable noopable closed this May 30, 2013
@noopable noopable reopened this May 30, 2013
@noopable
Copy link
Contributor Author

@ThomasCantonnet
Thanks.

@ghost ghost assigned weierophinney Jun 7, 2013
weierophinney added a commit that referenced this pull request Jun 7, 2013
…oller-redirect

Fix the controller plugin PostRedirectGet wrong redirection (in MVC)
weierophinney added a commit that referenced this pull request Jun 7, 2013
@noopable noopable deleted the hotfix/post-redirect-get-controller-redirect branch December 13, 2013 13:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants