Skip to content

Commit

Permalink
OK. Should have flushed caches to check the absolute link was correct
Browse files Browse the repository at this point in the history
  • Loading branch information
gsteel committed Feb 8, 2014
1 parent 528b267 commit 51e9b7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/DataObjects/DataObjectAsPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public function getCMSFields()
$urlsegment = new SiteTreeURLSegmentField("URLSegment", $this->fieldLabel('URLSegment'));

if($this->getListingPage()) {
$prefix = $this->getListingPage()->AbsoluteLink();
$prefix = $this->getListingPage()->AbsoluteLink('show').'/';
} else {
$prefix = Director::absoluteBaseURL() . 'listing-page/show/';
}
Expand Down

0 comments on commit 51e9b7c

Please sign in to comment.