src/Controller/Component/FilterComponent.php
protected function _redirect($action)
    {
        $params = $this->controller()->request->params['pass'];
        $searchParams = array_diff_key(
            array_merge(
                $this->controller()->request->query,
                $this->values()
            ),
            array_flip(
                (array)$this->config('prohibitedParams')
            )
        );

        if ($this->config('filterEmptyParams')) {
            $searchParams = array_filter($searchParams);
        }
        $params['?'] = $searchParams;
        $params = array_merge($params, $searchParams);

        $params['action'] = $action;
        $this->controller()->redirect($params);
        $this->controller()->response->send();
        $this->controller()->response->stop();
    }
protected function _redirect($action)
    {
        $params = $this->controller()->request->params['pass'];
        $searchParams = array_diff_key(
            array_merge(
                $this->controller()->request->query,
                $this->values()
            ),
            array_flip(
                (array)$this->config('prohibitedParams')
            )
        );

        if ($this->config('filterEmptyParams')) {
            $searchParams = array_filter($searchParams);
        }
        $params['?'] = $searchParams;
        $params = array_merge($params, $searchParams);

        $params['action'] = $action;
        $this->controller()->redirect($params);
        $this->controller()->response->send();
        $this->controller()->response->stop();
    }
protected function _redirect ( $ action ) { $ params = $ this -> controller ( ) -> request -> params [ 'pass' ] ; $ searchParams = array_diff_key ( array_merge ( $ this -> controller ( ) -> request -> query , $ this -> values ( ) ) , array_flip ( ( array ) $ this -> config ( 'prohibitedParams' ) ) ) ; if ( $ this -> config ( 'filterEmptyParams' ) ) { $ searchParams = array_filter ( $ searchParams ) ; } $ params [ '?' ] = $ searchParams ; $ params = array_merge ( $ params , $ searchParams ) ; $ params [ 'action' ] = $ action ; $ this -> controller ( ) -> redirect ( $ params ) ; $ this -> controller ( ) -> response -> send ( ) ; $ this -> controller ( ) -> response -> stop ( ) ; }
Redirect action method

@param string $action Action name.
@return void
Redirect action method