source/Application/Controller/Admin/NavigationTree.php
protected function _sessionizeLocalUrls($dom)
    {
        $url = $this->_getAdminUrl();
        $xPath = new DomXPath($dom);
        $str = getStr();
        foreach (['url', 'link'] as $attrType) {
            foreach ($xPath->query("//OXMENU//*[@$attrType]") as $node) {
                $localUrl = $node->getAttribute($attrType);
                if (strpos($localUrl, 'index.php?') === 0) {
                    $localUrl = $str->preg_replace('#^index.php\?#', $url, $localUrl);
                    $node->setAttribute($attrType, $localUrl);
                }
            }
        }
    }
protected function _sessionizeLocalUrls($dom)
    {
        $url = $this->_getAdminUrl();
        $xPath = new DomXPath($dom);
        $str = getStr();
        foreach (['url', 'link'] as $attrType) {
            foreach ($xPath->query("//OXMENU//*[@$attrType]") as $node) {
                $localUrl = $node->getAttribute($attrType);
                if (strpos($localUrl, 'index.php?') === 0) {
                    $localUrl = $str->preg_replace('#^index.php\?#', $url, $localUrl);
                    $node->setAttribute($attrType, $localUrl);
                }
            }
        }
    }
protected function _sessionizeLocalUrls ( $ dom ) { $ url = $ this -> _getAdminUrl ( ) ; $ xPath = new DomXPath ( $ dom ) ; $ str = getStr ( ) ; foreach ( [ 'url' , 'link' ] as $ attrType ) { foreach ( $ xPath -> query ( "//OXMENU//*[@$attrType]" ) as $ node ) { $ localUrl = $ node -> getAttribute ( $ attrType ) ; if ( strpos ( $ localUrl , 'index.php?' ) === 0 ) { $ localUrl = $ str -> preg_replace ( '#^index.php\?#' , $ url , $ localUrl ) ; $ node -> setAttribute ( $ attrType , $ localUrl ) ; } } } }
add session parameters to local urls

@param object $dom dom element to add links
add session parameters to local urls