mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 09:05:56 +00:00
FIX: remove version from the breadcrumb url for the stable version
Same as in the menu links. fixes multiple urls for the same content
This commit is contained in:
parent
62dd4e92f7
commit
027b63ea0b
@ -675,6 +675,11 @@ class DocumentationViewer extends Controller {
|
|||||||
$action = implode('/', $path);
|
$action = implode('/', $path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// check for stable version: if so, remove version from link
|
||||||
|
// (see DocumentationEntity->getRelativeLink() )
|
||||||
|
$objEntity = $this->getEntity();
|
||||||
|
if ($objEntity && $objEntity->getStableVersion() == $version) $version = '';
|
||||||
|
|
||||||
$link = Controller::join_links(
|
$link = Controller::join_links(
|
||||||
Director::absoluteBaseURL(),
|
Director::absoluteBaseURL(),
|
||||||
self::get_link_base(),
|
self::get_link_base(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user