code: public function returnUrl()
      {
          $return = '';
  
          $return .= empty($this->_urlParts['scheme']) ? '' : $this->_urlParts['scheme'] . '://';
  
          $return .= empty($this->_urlParts['user']) ? '' : $this->_urlParts['user'];
          $return .= empty($this->_urlParts['pass']) || empty($this->_urlParts['user']) ? '' : ':' . $this->_urlParts['pass'];
  
          $return .= empty($this->_urlParts['user']) ? '' : '@';
  
          $return .= empty($this->_urlParts['host']) ? '' : $this->_urlParts['host'];
          $return .= empty($this->_urlParts['port']) ? '' : ':' . $this->_urlParts['port'];
  
          $return .= empty($this->_urlParts['path']) ? '' : '/' . ltrim($this->_urlParts['path'], '/');
  
          $return .= empty($this->_urlParts['query']) ? '' : '?' . $this->_urlParts['query'];
  
          $return .= empty($this->_urlParts['fragment']) ? '' : '#' . $this->_urlParts['fragment'];
  
          return $return;
      }
docs: Return complete URL
  
  @return string