diff --git a/code/sitefeatures/PageCommentInterface.php b/code/sitefeatures/PageCommentInterface.php index 23e51121..a186b6dd 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); } }