public function getHostRelativeUrl()
    {
        $url = $this->getPath();
        if ($this->hasQueryString()) $url .= '?' . $this->getQueryString();
        if ($this->hasFragmentString()) $url .= '#' . $this->getFragmentString();
        return $url;
    }
public function getHostRelativeUrl()
    {
        $url = $this->getPath();
        if ($this->hasQueryString()) $url .= '?' . $this->getQueryString();
        if ($this->hasFragmentString()) $url .= '#' . $this->getFragmentString();
        return $url;
    }
public function getHostRelativeUrl ( ) { $ url = $ this -> getPath ( ) ; if ( $ this -> hasQueryString ( ) ) $ url .= '?' . $ this -> getQueryString ( ) ; if ( $ this -> hasFragmentString ( ) ) $ url .= '#' . $ this -> getFragmentString ( ) ; return $ url ; }
The URL components after the host.
@return string
The URL components after the host .