code: 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;
  	}
docs: Return the current URL without path or query string
  
  @return string The URL