mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
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…
x
Reference in New Issue
Block a user