Merge pull request #1549 from dhensby/pulls/4/admin-url-fix

FIX Allow changing admin URLs
This commit is contained in:
Daniel Hensby 2016-07-19 14:48:19 +01:00 committed by GitHub
commit 6b4617d476

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"