Graby\Extractor\HttpClient::getUglyURL PHP Method

getUglyURL() private method

And adding _escaped_fragment_ to the request will force the HTML version of the url instead of the full JS
private getUglyURL ( string $url, string $html ) : false | string
$url string Absolute url
$html string First characters of the response (hopefully it'll be enough to find some meta)
return false | string
    private function getUglyURL($url, $html)
    {
        $found = false;
        foreach ($this->config['ajax_triggers'] as $string) {
            if (stripos($html, $string)) {
                $found = true;
                break;
            }
        }
        if (!$found) {
            return false;
        }
        $this->logger->log('debug', 'Added escaped fragment to url');
        $query = array('_escaped_fragment_' => '');
        // add fragment to url
        $url .= parse_url($url, PHP_URL_QUERY) ? '&' : '?';
        // needed for some sites
        $url .= str_replace('%2F', '/', http_build_query($query));
        return $url;
    }