From 581c7cb53a852f09516fd54553df1ebdbafbcd3e Mon Sep 17 00:00:00 2001 From: UndefinedOffset Date: Wed, 24 Feb 2016 17:56:14 -0400 Subject: [PATCH] BUGFIX: Fixed issue next/previous page links missing the documentation base link --- code/DocumentationManifest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/DocumentationManifest.php b/code/DocumentationManifest.php index bba6692..a033614 100644 --- a/code/DocumentationManifest.php +++ b/code/DocumentationManifest.php @@ -534,7 +534,7 @@ class DocumentationManifest foreach ($this->getPages() as $url => $page) { if ($grabNext && strpos($page['filepath'], $entityBase) !== false) { return new ArrayData(array( - 'Link' => $url, + 'Link' => Controller::join_links(Config::inst()->get('DocumentationViewer', 'link_base'), $url), 'Title' => $page['title'] )); } @@ -543,7 +543,7 @@ class DocumentationManifest $grabNext = true; } elseif (!$fallback && strpos($page['filepath'], $filepath) !== false) { $fallback = new ArrayData(array( - 'Link' => $url, + 'Link' => Controller::join_links(Config::inst()->get('DocumentationViewer', 'link_base'), $url), 'Title' => $page['title'], 'Fallback' => true )); @@ -576,7 +576,7 @@ class DocumentationManifest if ($filepath == $page['filepath']) { if ($previousUrl) { return new ArrayData(array( - 'Link' => $previousUrl, + 'Link' => Controller::join_links(Config::inst()->get('DocumentationViewer', 'link_base'), $previousUrl), 'Title' => $previousPage['title'] )); }