diff --git a/code/CMSMain.php b/code/CMSMain.php index 2989f917..8f3759dc 100755 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -121,6 +121,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr function SwitchView() { if($page = $this->currentPage()) { $nav = $page->getNavigatorItems(); + Requirements::customScript("window.name = windowName('cms');"); return $nav['items']; } }