diff --git a/code/Model/VirtualPage.php b/code/Model/VirtualPage.php index 991ddb2963..143ffc76d4 100644 --- a/code/Model/VirtualPage.php +++ b/code/Model/VirtualPage.php @@ -246,7 +246,7 @@ public function getCMSFields() 'a', [ 'class' => 'cmsEditlink', - 'href' => 'admin/pages/edit/show/' . $this->CopyContentFromID, + 'href' => $this->CopyContentFrom()->CMSEditLink(), ], _t(self::class . '.EditLink', 'edit') );