diff --git a/code/sitefeatures/PageCommentInterface.php b/code/sitefeatures/PageCommentInterface.php index 0f278d9f..1a06018b 100755 --- a/code/sitefeatures/PageCommentInterface.php +++ b/code/sitefeatures/PageCommentInterface.php @@ -343,7 +343,7 @@ class PageCommentInterface_Form extends Form { $page = DataObject::get_by_id("Page", $comment->ParentID); if($page) { // Redirect to the actual post on the page. - return Director::redirect(Director::baseURL(). $page->URLSegment.'#PageComment_'.$comment->ID); + return Director::redirect($page->Link() . '#PageComment_' . $comment->ID); } }