getOption('alias')) && ($page = Qs_SiteMap::findFirst(['fullAlias' => $alias])) && $this->getDoc()->getAcl()->isAllowedPage($page) ) { Qs_Http::redirect(BASE_URL_LANGUAGE . '/' . $alias); } $menu = $this->_doc->getMenu(); if (($menuItem = Qs_Array::treeFind($menu, [$this->getDoc()->getAcl(), 'isAllowedPage']))) { Qs_Http::redirect($menuItem['url']); } else { $this->_doc->displayError('Can\'t find a page for redirect'); } } }