mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
fixed VirtualPage generating incorrect CMS edit links
VirtualPage now uses AdminRootController config `url_base` to generate edit links
This commit is contained in:
parent
ba578cfc06
commit
c3e7a49904
@ -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')
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user