From 7af4414a024acb385e76fd6fe7f51a667a50a855 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Tue, 12 Jan 2010 23:53:43 +0000 Subject: [PATCH] BUGFIX: Fix changing the URLSegment on a page making the Draft Site link point to the wrong subsite (from r87776) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@96781 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/LeftAndMain.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index 24b04276..08e22b51 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -717,7 +717,7 @@ JS; if( ($record->class != 'VirtualPage') && $originalURLSegment != $record->URLSegment) { $message .= sprintf(_t('LeftAndMain.CHANGEDURL'," Changed URL to '%s'"),$record->URLSegment); FormResponse::add("\$('Form_EditForm').elements.URLSegment.value = \"$record->URLSegment\";"); - FormResponse::add("\$('Form_EditForm_StageURLSegment').value = \"{$record->URLSegment}\";"); + FormResponse::add("\$('Form_EditForm_StageURLSegment').value = \"" . $record->AbsoluteLink() . "\";"); } // If the 'Save & Publish' button was clicked, also publish the page