public function updatePreviewLink(&$link, $action = null)
    {
        $url = Director::absoluteURL($this->owner->Link($action));
        $link = HTTP::setGetVar('SubsiteID', $this->owner->SubsiteID, $url);
        return $link;
    }
public function updatePreviewLink(&$link, $action = null)
    {
        $url = Director::absoluteURL($this->owner->Link($action));
        $link = HTTP::setGetVar('SubsiteID', $this->owner->SubsiteID, $url);
        return $link;
    }
public function updatePreviewLink ( & $ link , $ action = null ) { $ url = Director :: absoluteURL ( $ this -> owner -> Link ( $ action ) ) ; $ link = HTTP :: setGetVar ( 'SubsiteID' , $ this -> owner -> SubsiteID , $ url ) ; return $ link ; }
Use the CMS domain for iframed CMS previews to prevent single-origin violations
and SSL cert problems. Always set SubsiteID to avoid errors because a page doesn't
exist on the CMS domain.

@param string &$link
@param string|null $action
@return string
Use the CMS domain for iframed CMS previews to prevent single - origin violations and SSL cert problems . Always set SubsiteID to avoid errors because a page doesn t exist on the CMS domain .