Make LeftAndMain redirect direct to admin

Currently, using the Subsites dropdown in the admin interface causes the CMS to reload to admin/pages. This can cause issues if you have set another interface as your default (other than CMSMain).
This commit is contained in:
Morven Lewis-Everley 2013-04-25 19:29:56 +02:00
parent 6dcc30071a
commit 5747704c97

View File

@ -23,7 +23,7 @@ class LeftAndMainSubsites extends Extension {
Subsite::changeSubsite($_GET['SubsiteID']);
//Redirect to clear the current page
return $this->owner->redirect('admin/pages');
return $this->owner->redirect('admin/');
}
// Set subsite ID based on currently shown record
@ -189,4 +189,4 @@ class LeftAndMainSubsites extends Extension {
return $this->owner->redirect(Controller::join_links($this->owner->Link('show'), $newPage->ID));
}
}
}