public function getFullUrl($path)
    {
        if (0 === strpos($path, 'http') || 0 === strpos($path, 'mailto:') || 0 === strpos($path, '#')) {
            return $path;
        }
        $router = $this->get('router');
        if ('/' != $path[0]) {
            $path = '/'.$path;
        }
        $baseUrl = $router->getContext()->getBaseUrl();
        if ($baseUrl && '/' != $baseUrl[0]) {
            $baseUrl = '/'.$baseUrl;
        }

        return $router->getContext()->getScheme().'://'.$router->getContext()->getHost().$baseUrl.$path;
    }
public function getFullUrl($path)
    {
        if (0 === strpos($path, 'http') || 0 === strpos($path, 'mailto:') || 0 === strpos($path, '#')) {
            return $path;
        }
        $router = $this->get('router');
        if ('/' != $path[0]) {
            $path = '/'.$path;
        }
        $baseUrl = $router->getContext()->getBaseUrl();
        if ($baseUrl && '/' != $baseUrl[0]) {
            $baseUrl = '/'.$baseUrl;
        }

        return $router->getContext()->getScheme().'://'.$router->getContext()->getHost().$baseUrl.$path;
    }
public function getFullUrl ( $ path ) { if ( 0 === strpos ( $ path , 'http' ) || 0 === strpos ( $ path , 'mailto:' ) || 0 === strpos ( $ path , '#' ) ) { return $ path ; } $ router = $ this -> get ( 'router' ) ; if ( '/' != $ path [ 0 ] ) { $ path = '/' . $ path ; } $ baseUrl = $ router -> getContext ( ) -> getBaseUrl ( ) ; if ( $ baseUrl && '/' != $ baseUrl [ 0 ] ) { $ baseUrl = '/' . $ baseUrl ; } return $ router -> getContext ( ) -> getScheme ( ) . '://' . $ router -> getContext ( ) -> getHost ( ) . $ baseUrl . $ path ; }
Absolutize an URL.

@param string $path

@return string
Absolutize an URL .