core/web/WebsiteLink.php
public function setHref($href)
    {
        if (StringHelper::startsWith($href, '//')) {
            $this->_href = Url::base(true) . str_replace('//', '/', $href);
        } else {
            $this->_href = Url::ensureHttp($href);
        }
    }
public function setHref($href)
    {
        if (StringHelper::startsWith($href, '//')) {
            $this->_href = Url::base(true) . str_replace('//', '/', $href);
        } else {
            $this->_href = Url::ensureHttp($href);
        }
    }
public function setHref ( $ href ) { if ( StringHelper :: startsWith ( $ href , '//' ) ) { $ this -> _href = Url :: base ( true ) . str_replace ( '//' , '/' , $ href ) ; } else { $ this -> _href = Url :: ensureHttp ( $ href ) ; } }
Set the href value for an external link resource.

@param string $href The external link href value, the http protcol will be ensured.
Set the href value for an external link resource .