Permalink
Browse files

OK. Should have flushed caches to check the absolute link was correct

  • Loading branch information...
1 parent 528b267 commit 51e9b7c0ce3b987d0bdd4d88b2fabe6b8748f606 @gsteel gsteel committed Feb 8, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 code/DataObjects/DataObjectAsPage.php
@@ -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/';
}

0 comments on commit 51e9b7c

Please sign in to comment.