page.php
public function expandUrl($url)
    {
        if (! is_object($url)) {
            $url = new SimpleUrl($url);
        }
        $location = $this->getBaseUrl() ? $this->getBaseUrl() : new SimpleUrl();

        return $url->makeAbsolute($location->makeAbsolute($this->getUrl()));
    }
public function expandUrl($url)
    {
        if (! is_object($url)) {
            $url = new SimpleUrl($url);
        }
        $location = $this->getBaseUrl() ? $this->getBaseUrl() : new SimpleUrl();

        return $url->makeAbsolute($location->makeAbsolute($this->getUrl()));
    }
public function expandUrl ( $ url ) { if ( ! is_object ( $ url ) ) { $ url = new SimpleUrl ( $ url ) ; } $ location = $ this -> getBaseUrl ( ) ? $ this -> getBaseUrl ( ) : new SimpleUrl ( ) ; return $ url -> makeAbsolute ( $ location -> makeAbsolute ( $ this -> getUrl ( ) ) ) ; }
Expands expandomatic URLs into fully qualified URLs.

@param SimpleUrl $url        Relative URL.

@return SimpleUrl            Absolute URL.
Expands expandomatic URLs into fully qualified URLs .