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