public function getAbsoluteUrl($withFragment=true)
    {              
        if($this->isCrawlable() === false && empty($this->getFragment())){
            $absolutePath = $this->getOriginalUrl();
        }else{            
            if($this->parentLink !==null){
                $newUri = \GuzzleHttp\Psr7\UriResolver::resolve($this->parentLink,$this);
            }else{
                $newUri = $this;
            }
            
            $absolutePath = GuzzleUri::composeComponents(
                $newUri->getScheme(),
                $newUri->getAuthority(),
                $newUri->getPath(),
                $newUri->getQuery(),
                $withFragment===true?$this->getFragment():""
            );
        }
        
        return $absolutePath;
    }
public function getAbsoluteUrl($withFragment=true)
    {              
        if($this->isCrawlable() === false && empty($this->getFragment())){
            $absolutePath = $this->getOriginalUrl();
        }else{            
            if($this->parentLink !==null){
                $newUri = \GuzzleHttp\Psr7\UriResolver::resolve($this->parentLink,$this);
            }else{
                $newUri = $this;
            }
            
            $absolutePath = GuzzleUri::composeComponents(
                $newUri->getScheme(),
                $newUri->getAuthority(),
                $newUri->getPath(),
                $newUri->getQuery(),
                $withFragment===true?$this->getFragment():""
            );
        }
        
        return $absolutePath;
    }
public function getAbsoluteUrl ( $ withFragment = true ) { if ( $ this -> isCrawlable ( ) === false && empty ( $ this -> getFragment ( ) ) ) { $ absolutePath = $ this -> getOriginalUrl ( ) ; } else { if ( $ this -> parentLink !== null ) { $ newUri = \ GuzzleHttp \ Psr7 \ UriResolver :: resolve ( $ this -> parentLink , $ this ) ; } else { $ newUri = $ this ; } $ absolutePath = GuzzleUri :: composeComponents ( $ newUri -> getScheme ( ) , $ newUri -> getAuthority ( ) , $ newUri -> getPath ( ) , $ newUri -> getQuery ( ) , $ withFragment === true ? $ this -> getFragment ( ) : "" ) ; } return $ absolutePath ; }
converting nodeUrl to absolute Url form
@param boolean $withFragment
@return string
converting nodeUrl to absolute Url form