mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 11:05:56 +02:00
BUGFIX: Fixed issue next/previous page links missing the documentation base link
This commit is contained in:
parent
35deb55613
commit
581c7cb53a
@ -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']
|
||||
));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user