mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 11:05:56 +02:00
BUGFIX: Links in the all pages view missing the documentation base link
This commit is contained in:
parent
d5f53864d7
commit
6682975a09
@ -544,13 +544,14 @@ class DocumentationViewer extends Controller
|
||||
{
|
||||
$pages = $this->getManifest()->getPages();
|
||||
$output = new ArrayList();
|
||||
$baseLink = $this->getDocumentationBaseHref();
|
||||
|
||||
foreach ($pages as $url => $page) {
|
||||
$first = strtoupper(trim(substr($page['title'], 0, 1)));
|
||||
|
||||
if ($first) {
|
||||
$output->push(new ArrayData(array(
|
||||
'Link' => $url,
|
||||
'Link' => Controller::join_links($baseLink, $url),
|
||||
'Title' => $page['title'],
|
||||
'FirstLetter' => $first
|
||||
)));
|
||||
|
Loading…
Reference in New Issue
Block a user