Merge pull request #100 from webbuilders-group/all-pages-link-fix

BUGFIX: Links in the all pages view missing the documentation base link
This commit is contained in:
Daniel Hensby 2016-02-24 18:27:36 +00:00
commit 35deb55613
1 changed files with 2 additions and 1 deletions

View File

@ -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
)));