From 5b2897381bd2332b6fd59d191e814dcf303eccd7 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Mon, 4 Oct 2010 05:21:14 +0000 Subject: [PATCH] BUGFIX: Fix navigator links not opening in new windows. (from r97510) (from r99116) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@111600 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/CMSMain.php | 1 + 1 file changed, 1 insertion(+) diff --git a/code/CMSMain.php b/code/CMSMain.php index 983f3f0e..85ed4f07 100755 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -103,6 +103,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr function SwitchView() { if($page = $this->currentPage()) { $nav = SilverStripeNavigator::get_for_record($page); + Requirements::customScript("window.name = windowName('cms');"); return $nav['items']; } }