BUGFIX: Links in the all pages view missing the documentation base link

This commit is contained in:
UndefinedOffset 2016-02-24 11:41:37 -04:00
parent d5f53864d7
commit 6682975a09

View File

@ -544,13 +544,14 @@ class DocumentationViewer extends Controller
{ {
$pages = $this->getManifest()->getPages(); $pages = $this->getManifest()->getPages();
$output = new ArrayList(); $output = new ArrayList();
$baseLink = $this->getDocumentationBaseHref();
foreach ($pages as $url => $page) { foreach ($pages as $url => $page) {
$first = strtoupper(trim(substr($page['title'], 0, 1))); $first = strtoupper(trim(substr($page['title'], 0, 1)));
if ($first) { if ($first) {
$output->push(new ArrayData(array( $output->push(new ArrayData(array(
'Link' => $url, 'Link' => Controller::join_links($baseLink, $url),
'Title' => $page['title'], 'Title' => $page['title'],
'FirstLetter' => $first 'FirstLetter' => $first
))); )));