mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
use AdminRootController::get_admin_route()
use AdminRootController::get_admin_route() instead of reading url_base directly from config
This commit is contained in:
parent
c3e7a49904
commit
da115d9910
@ -248,7 +248,7 @@ class VirtualPage extends Page
|
||||
'a',
|
||||
[
|
||||
'class' => 'cmsEditlink',
|
||||
'href' => AdminRootController::config()->get('url_base') . '/pages/edit/show/' . $this->CopyContentFromID,
|
||||
'href' => AdminRootController::get_admin_route() . '/pages/edit/show/' . $this->CopyContentFromID,
|
||||
],
|
||||
_t(self::class . '.EditLink', 'edit')
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user