SilverStripe\Subsites\Extensions\SiteTreeSubsites::updatePreviewLink
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.
Signature
public function updatePreviewLink(&
$link,
[string|null
$action = NULL] )
Parameters
$link
—$action
— object
Returns
- string