fixed VirtualPage generating incorrect CMS edit links

VirtualPage  now uses AdminRootController config `url_base` to generate edit links
This commit is contained in:
mirche97 2023-09-05 16:15:11 +02:00 committed by Mirjana Durakovic
parent ba578cfc06
commit c3e7a49904

View File

@ -3,6 +3,7 @@
namespace SilverStripe\CMS\Model;
use Page;
use SilverStripe\Admin\AdminRootController;
use SilverStripe\Core\Convert;
use SilverStripe\Dev\Deprecation;
use SilverStripe\Forms\FieldList;
@ -247,7 +248,7 @@ class VirtualPage extends Page
'a',
[
'class' => 'cmsEditlink',
'href' => 'admin/pages/edit/show/' . $this->CopyContentFromID,
'href' => AdminRootController::config()->get('url_base') . '/pages/edit/show/' . $this->CopyContentFromID,
],
_t(self::class . '.EditLink', 'edit')
);