File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
src/CoreBundle/EventListener Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -280,14 +280,11 @@ private function updateCollapsedState(ItemInterface $metaModelsNode): void
280280 $ sessionBag = $ this ->requestStack ->getSession ()->getBag ('contao_backend ' );
281281 $ status = ($ sessionBag instanceof AttributeBagInterface) ? $ sessionBag ->get ('backend_modules ' ) : [];
282282 $ isCollapsed = ($ status [$ nodeName ] ?? 1 ) < 1 ;
283- $ path = $ this ->router ->generate ('contao_backend ' );
284283
285284 $ metaModelsNode
286285 ->setLinkAttribute ('class ' , 'group- ' . $ nodeName )
287- ->setLinkAttribute (
288- 'onclick ' ,
289- "return AjaxRequest.toggleNavigation(this, ' " . $ nodeName . "', ' " . $ path . "') "
290- )
286+ ->setLinkAttribute ('data-action ' , 'contao--toggle-navigation#toggle:prevent ' )
287+ ->setLinkAttribute ('data-contao--toggle-navigation-category-param ' , $ nodeName )
291288 ->setLinkAttribute ('aria-controls ' , $ nodeName )
292289 ->setChildrenAttribute ('id ' , $ nodeName )
293290 ->setLinkAttribute (
You can’t perform that action at this time.
0 commit comments