diff --git a/library/ZendAfi/View/Helper/Admin/FrontNavEntries.php b/library/ZendAfi/View/Helper/Admin/FrontNavEntries.php index 9d712ac35ba9e44e88cc13474d901ac96863f924..0905eb5844e203084481007875953ee3feba7265 100644 --- a/library/ZendAfi/View/Helper/Admin/FrontNavEntries.php +++ b/library/ZendAfi/View/Helper/Admin/FrontNavEntries.php @@ -55,7 +55,7 @@ class ZendAfi_View_Helper_Admin_FrontNavEntries extends ZendAfi_View_Helper_Base protected function _adminLinks() { - $links = [$this->_item('/admin', + $links = [$this->_item(Class_Url::absolute('/admin'), $this->_('Accès pro.'), $this->_('Accéder à l\'interface d\'administration'), 'home')]; @@ -67,26 +67,26 @@ class ZendAfi_View_Helper_Admin_FrontNavEntries extends ZendAfi_View_Helper_Base 'redmine'); if ($this->_isAllowed('cms', 'index')) - $links[] = $this->_item('/admin/cms/', + $links[] = $this->_item(Class_Url::absolute('/admin/cms/'), $this->_('Articles'), $this->_('Accéder aux articles dans l\'interface d\'administration'), 'articles'); if ($this->_isAllowed('catalogue', 'index')) - $links[] = $this->_item('/admin/catalogue/', + $links[] = $this->_item(Class_Url::absolute('/admin/catalogue/'), $this->_('Domaines'), $this->_('Accéder aux domaines dans l\'interface d\'administration'), 'domains'); if ($this->_isAllowed('file-manager', 'index')) - $links[] = $this->_item('/admin/file-manager/', + $links[] = $this->_item(Class_Url::absolute('/admin/file-manager/'), $this->_('Explorateur de fichiers'), $this->_('Accéder à l\'explorateur de fichiers dans un nouvel onglet'), 'filebrowser', ['target' => '_blank']); if ($this->_isAllowed('users', 'index')) - $links[] = $this->_item('/admin/users', + $links[] = $this->_item(Class_Url::absolute('/admin/users'), $this->_('Utilisateurs'), $this->_('Accéder aux utilisateurs dans l\'interface d\'administration'), 'users'); @@ -120,7 +120,7 @@ class ZendAfi_View_Helper_Admin_FrontNavEntries extends ZendAfi_View_Helper_Base protected function _itemPopup($url, $label, $title, $icon, $attribs=[]) { - return $this->_item($url, $label, $title, $icon, + return $this->_item(Class_Url::absolute($url), $label, $title, $icon, array_merge(['data-popup' => 'true'], $attribs)); } @@ -145,7 +145,7 @@ class ZendAfi_View_Helper_Admin_FrontNavEntries extends ZendAfi_View_Helper_Base && Class_Users::isCurrentUserAllowedToEditProfile($this->_profile)) $actions = $this->_profileActions($actions); - $actions []= $this->_item('/admin/index/clearcache/', + $actions []= $this->_item(Class_Url::absolute('/admin/index/clearcache/'), $this->_('Vider le cache'), $this->_('Vider le cache de Bokeh'), 'delete'); @@ -273,7 +273,7 @@ class ZendAfi_View_Helper_Admin_FrontNavEntries extends ZendAfi_View_Helper_Base 'showAmberIDE();$("#amber").show();', '$("#amber").hide();'); - $tools[] = $this->_item('/admin/profil/export/id_profil/' . $this->_profile_id, + $tools[] = $this->_item(Class_Url::absolute('/admin/profil/export/id_profil/') . $this->_profile_id, $this->_('Exporter le profil courant'), $this->_('Exporter le profil "%s" au format JSON', $this->_profile_label),