mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
Compare commits
2 Commits
411e5d3635
...
5d747fa33c
Author | SHA1 | Date | |
---|---|---|---|
|
5d747fa33c | ||
|
00caf8d4ad |
@ -51,6 +51,10 @@ SilverStripe\CMS\Controllers\CMSMain:
|
||||
- SilverStripe\Subsites\Extensions\HintsCacheKeyExtension
|
||||
- SilverStripe\Subsites\Extensions\SubsiteMenuExtension
|
||||
|
||||
SilverStripe\CMS\Controllers\CMSPagesController:
|
||||
extensions:
|
||||
- SilverStripe\Subsites\Extensions\SubsiteMenuExtension
|
||||
|
||||
SilverStripe\Subsites\Admin\SubsiteAdmin:
|
||||
extensions:
|
||||
- SilverStripe\Subsites\Extensions\SubsiteMenuExtension
|
||||
|
@ -6,7 +6,7 @@ use SilverStripe\Admin\AdminRootController;
|
||||
use SilverStripe\Admin\CMSMenu;
|
||||
use SilverStripe\Admin\CMSProfileController;
|
||||
use SilverStripe\Admin\LeftAndMain;
|
||||
use SilverStripe\CMS\Controllers\CMSMain;
|
||||
use SilverStripe\CMS\Controllers\CMSPagesController;
|
||||
use SilverStripe\CMS\Model\SiteTree;
|
||||
use SilverStripe\CMS\Controllers\CMSPageEditController;
|
||||
use SilverStripe\Control\Controller;
|
||||
@ -299,7 +299,7 @@ class LeftAndMainSubsites extends Extension
|
||||
// will show a list of the requested subsite's pages
|
||||
$currentSubsiteId = $request->getVar('SubsiteID');
|
||||
if ($page && (int) $page->SubsiteID !== (int) $currentSubsiteId) {
|
||||
return $this->owner->redirect(CMSMain::singleton()->Link());
|
||||
return $this->owner->redirect(CMSPagesController::singleton()->Link());
|
||||
}
|
||||
|
||||
// Page does belong to the current subsite, so remove the query string parameter and refresh the page
|
||||
|
Loading…
Reference in New Issue
Block a user