DocTocRenderer: no anchor for toplevel entries
Makes links look better and hides anchor-encoding issues at least on top level
This commit is contained in:
parent
3e93d62795
commit
5324875ab6
|
@ -86,7 +86,9 @@ class DocTocRenderer extends DocRenderer
|
||||||
);
|
);
|
||||||
$url = $view->url($path);
|
$url = $view->url($path);
|
||||||
/** @var \Icinga\Web\Url $url */
|
/** @var \Icinga\Web\Url $url */
|
||||||
|
if ($this->getDepth() > 0) {
|
||||||
$url->setAnchor($this->encodeAnchor($section->getId()));
|
$url->setAnchor($this->encodeAnchor($section->getId()));
|
||||||
|
}
|
||||||
$urlAttributes = array(
|
$urlAttributes = array(
|
||||||
'data-base-target' => '_next',
|
'data-base-target' => '_next',
|
||||||
'title' => sprintf(
|
'title' => sprintf(
|
||||||
|
|
Loading…
Reference in New Issue