FIX should be

This commit is contained in:
micmania1 2015-02-03 05:43:13 +00:00
parent 9b2dcc295f
commit 431cd38065
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ class BlogPost extends Page {
// We're going to add the url segment to sidebar so we're making it a little lighter
$urlSegment = $fields->dataFieldByName('URLSegment');
$urlSegment->setURLPrefix('/' . Director::makeRelative($this->Parent()->Link()));
$urlSegment->setURLPrefix('/' . Director::makeRelative($self->Parent()->Link()));
// Remove the MenuTitle and URLSegment from the main tab
$fields->removeFieldsFromTab('Root.Main', array(