From 5747704c97bffd02cc1404410f5270693649cb7f Mon Sep 17 00:00:00 2001 From: Morven Lewis-Everley Date: Thu, 25 Apr 2013 19:29:56 +0200 Subject: [PATCH] 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). --- code/extensions/LeftAndMainSubsites.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/extensions/LeftAndMainSubsites.php b/code/extensions/LeftAndMainSubsites.php index 07f6704..7cc5c0e 100644 --- a/code/extensions/LeftAndMainSubsites.php +++ b/code/extensions/LeftAndMainSubsites.php @@ -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)); } -} \ No newline at end of file +}