FIX Allow changing admin URLs

This commit is contained in:
Daniel Hensby 2016-07-18 12:44:20 +01:00
parent 7e5f0087b8
commit 0a7437db40
No known key found for this signature in database
GPG Key ID: B00D1E9767F0B06E

View File

@ -173,7 +173,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
*/
public function Link($action = null) {
$link = Controller::join_links(
$this->stat('url_base', true),
AdminRootController::admin_url(),
$this->stat('url_segment', true), // in case we want to change the segment
'/', // trailing slash needed if $action is null!
"$action"