From d1bdb6e9d40dcd0adb769429b5e2fed69cdff57d Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 16 Feb 2010 00:48:39 +0000 Subject: [PATCH] BUGFIX: fix incorrect link in CMS (from r97408) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@99050 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/control/SilverStripeNavigatorItem.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/control/SilverStripeNavigatorItem.php b/core/control/SilverStripeNavigatorItem.php index 946e83566..ba51a52b6 100644 --- a/core/control/SilverStripeNavigatorItem.php +++ b/core/control/SilverStripeNavigatorItem.php @@ -23,6 +23,13 @@ class SilverStripeNavigatorItem_CMSLink extends SilverStripeNavigatorItem { return $cmsLink; } } + + function getLink($page) { + if(is_a(Controller::curr(), 'CMSMain')) { + return Controller::curr()->AbsoluteLink() . 'show/' . $page->ID; + } + } + } class SilverStripeNavigatorItem_StageLink extends SilverStripeNavigatorItem {