public static function getCurrentUrlWithoutQueryString($checkTrustedHost = true)
    {
        return self::getCurrentScheme() . '://'
        . self::getCurrentHost($default = 'unknown', $checkTrustedHost)
        . self::getCurrentScriptName(false);
    }
public static function getCurrentUrlWithoutQueryString($checkTrustedHost = true)
    {
        return self::getCurrentScheme() . '://'
        . self::getCurrentHost($default = 'unknown', $checkTrustedHost)
        . self::getCurrentScriptName(false);
    }
public static function getCurrentUrlWithoutQueryString ( $ checkTrustedHost = true ) { return self :: getCurrentScheme ( ) . '://' . self :: getCurrentHost ( $ default = 'unknown' , $ checkTrustedHost ) . self :: getCurrentScriptName ( false ) ; }
Returns the current URL without the query string.

@param bool $checkTrustedHost Whether to do trusted host check. Should ALWAYS be true,
except in {@link Piwik\Plugin\Controller}.
@return string eg, `"http://example.org/dir1/dir2/index.php"` if the current URL is
`"http://example.org/dir1/dir2/index.php?param1=value1&param2=value2"`.
@api
Returns the current URL without the query string .