Contao\Environment::url PHP Method

url() protected static method

Return the current URL without path or query string
protected static url ( ) : string
return string The URL
    protected static function url()
    {
        $host = static::get('httpHost');
        $xhost = static::get('httpXForwardedHost');
        // SSL proxy
        if ($xhost != '' && $xhost == \Config::get('sslProxyDomain')) {
            return 'https://' . $xhost . '/' . $host;
        }
        return (static::get('ssl') ? 'https://' : 'http://') . $host;
    }