mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Linking breadcrumbs to root node via AssetAdmin->Breadcrumbs()
This commit is contained in:
parent
f78ab9097a
commit
e96d6f5bd5
@ -476,6 +476,18 @@ JS
|
||||
|
||||
return array_diff($allThumbnails, $usedThumbnails);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ArrayList
|
||||
*/
|
||||
public function Breadcrumbs($unlinked = false) {
|
||||
$items = parent::Breadcrumbs($unlinked);
|
||||
|
||||
// The root element should explicitly point to the root node
|
||||
$items[0]->Link = Controller::join_links($this->Link('show'), 'root');
|
||||
|
||||
return $items;
|
||||
}
|
||||
|
||||
}
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user