mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
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:
parent
6dcc30071a
commit
5747704c97
@ -23,7 +23,7 @@ class LeftAndMainSubsites extends Extension {
|
|||||||
Subsite::changeSubsite($_GET['SubsiteID']);
|
Subsite::changeSubsite($_GET['SubsiteID']);
|
||||||
|
|
||||||
//Redirect to clear the current page
|
//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
|
// 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));
|
return $this->owner->redirect(Controller::join_links($this->owner->Link('show'), $newPage->ID));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user