mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Merge pull request #1119 from micmania1/fix-broken-links-dependent-pages
FIX Broken links on dependent pages tab
This commit is contained in:
commit
7fc5a29f35
@ -1919,14 +1919,14 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
|||||||
->setFieldFormatting(array(
|
->setFieldFormatting(array(
|
||||||
'Title' => function($value, &$item) {
|
'Title' => function($value, &$item) {
|
||||||
return sprintf(
|
return sprintf(
|
||||||
'<a href=\"admin/pages/edit/show/%d\">%s</a>',
|
'<a href="admin/pages/edit/show/%d">%s</a>',
|
||||||
(int)$item->ID,
|
(int)$item->ID,
|
||||||
Convert::raw2xml($item->Title)
|
Convert::raw2xml($item->Title)
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
'AbsoluteLink' => function($value, &$item) {
|
'AbsoluteLink' => function($value, &$item) {
|
||||||
return sprintf(
|
return sprintf(
|
||||||
'<a href=\"%s\">%s</a>',
|
'<a href="%s" target="_blank">%s</a>',
|
||||||
Convert::raw2xml($value),
|
Convert::raw2xml($value),
|
||||||
Convert::raw2xml($value)
|
Convert::raw2xml($value)
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user