protected function cleanRequestUri()
    {
        $requestUri = $this->request->getRequestUri();

        $requestUriQuery = parse_url($requestUri, PHP_URL_QUERY);
        parse_str($requestUriQuery, $requestParams);
        if (is_array($requestParams) && count($requestParams) > 0) {
            foreach ($this->ajaxQueryParams as $queryParam) {
                if (array_key_exists($queryParam, $requestParams)) {
                    unset($requestParams[$queryParam]);
                }
            }
        }

        $this->request->setRequestUri(
            str_replace($requestUriQuery, http_build_query($requestParams), $requestUri)
        );
    }
protected function cleanRequestUri()
    {
        $requestUri = $this->request->getRequestUri();

        $requestUriQuery = parse_url($requestUri, PHP_URL_QUERY);
        parse_str($requestUriQuery, $requestParams);
        if (is_array($requestParams) && count($requestParams) > 0) {
            foreach ($this->ajaxQueryParams as $queryParam) {
                if (array_key_exists($queryParam, $requestParams)) {
                    unset($requestParams[$queryParam]);
                }
            }
        }

        $this->request->setRequestUri(
            str_replace($requestUriQuery, http_build_query($requestParams), $requestUri)
        );
    }
protected function cleanRequestUri ( ) { $ requestUri = $ this -> request -> getRequestUri ( ) ; $ requestUriQuery = parse_url ( $ requestUri , PHP_URL_QUERY ) ; parse_str ( $ requestUriQuery , $ requestParams ) ; if ( is_array ( $ requestParams ) && count ( $ requestParams ) > 0 ) { foreach ( $ this -> ajaxQueryParams as $ queryParam ) { if ( array_key_exists ( $ queryParam , $ requestParams ) ) { unset ( $ requestParams [ $ queryParam ] ) ; } } } $ this -> request -> setRequestUri ( str_replace ( $ requestUriQuery , http_build_query ( $ requestParams ) , $ requestUri ) ) ; }
Remove query parameters added to the request URI for AJAX requests

@return void
Remove query parameters added to the request URI for AJAX requests