diff --git a/code/reports/BrokenLinksReport.php b/code/reports/BrokenLinksReport.php
index 2a46dd22..f030bc30 100644
--- a/code/reports/BrokenLinksReport.php
+++ b/code/reports/BrokenLinksReport.php
@@ -79,14 +79,17 @@ class BrokenLinksReport extends SS_Report {
$dateTitle = _t('BrokenLinksReport.ColumnDateLastPublished', 'Date last published');
}
- $linkBase = singleton('CMSPageEditController')->Link('show') . '/';
+ $linkBase = singleton('CMSPageEditController')->Link('show');
$fields = array(
"Title" => array(
"title" => _t('BrokenLinksReport.PageName', 'Page name'),
- 'formatting' => sprintf(
- '$value',
- _t('BrokenLinksReport.HoverTitleEditPage', 'Edit page')
- )
+ 'formatting' => function($value, $item) use ($linkBase) {
+ return sprintf('%s',
+ Controller::join_links($linkBase, $item->ID),
+ _t('BrokenLinksReport.HoverTitleEditPage', 'Edit page'),
+ $value
+ );
+ }
),
"LastEdited" => array(
"title" => $dateTitle,