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);
|
||||
/** @var \Icinga\Web\Url $url */
|
||||
$url->setAnchor($this->encodeAnchor($section->getId()));
|
||||
if ($this->getDepth() > 0) {
|
||||
$url->setAnchor($this->encodeAnchor($section->getId()));
|
||||
}
|
||||
$urlAttributes = array(
|
||||
'data-base-target' => '_next',
|
||||
'title' => sprintf(
|
||||
|
|
Loading…
Reference in New Issue