diff --git a/code/controllers/CMSMain.php b/code/controllers/CMSMain.php index 86cedb15..68d33377 100644 --- a/code/controllers/CMSMain.php +++ b/code/controllers/CMSMain.php @@ -811,6 +811,8 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr public function currentPageID() { $id = parent::currentPageID(); + $this->extend('updateCurrentPageID', $id); + // Fall back to homepage record if(!$id) { $homepageSegment = RootURLController::get_homepage_link();