use httpRoot for absolute links instead of relative links

This commit is contained in:
Uwe Steinmann 2023-05-11 17:26:15 +02:00
parent eebe9d48d3
commit 2ccbe2b9c7
2 changed files with 7 additions and 7 deletions

View File

@ -901,7 +901,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
if ($accessobject->check_view_access('ManageNotify'))
$menuitems['edit_notify'] = array('link'=>$this->params['settings']->_httpRoot."out/out.ManageNotify.php", 'label'=>getMLText('edit_existing_notify'));
$menuitems['2_factor_auth'] = array('link'=>"../out/out.Setup2Factor.php", 'label'=>getMLText('2_factor_auth'));
$menuitems['2_factor_auth'] = array('link'=>$this->params['settings']->_httpRoot."out/out.Setup2Factor.php", 'label'=>getMLText('2_factor_auth'));
if ($this->params['enableusersview']){
if ($accessobject->check_view_access('UsrView'))
@ -947,9 +947,9 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
$menuitems['workflow_summary'] = array('link'=>$this->params['settings']->_httpRoot."out/out.WorkflowSummary.php", 'label'=>getMLText('workflow_summary'));
}
if ($accessobject->check_view_access('ReceiptSummary'))
$menuitems['receipt_summary'] = array('link'=>"../out/out.ReceiptSummary.php", 'label'=>getMLText('receipt_summary'));
$menuitems['receipt_summary'] = array('link'=>$this->params['settings']->_httpRoot."out/out.ReceiptSummary.php", 'label'=>getMLText('receipt_summary'));
if ($accessobject->check_view_access('RevisionSummary'))
$menuitems['revision_summary'] = array('link'=>"../out/out.RevisionSummary.php", 'label'=>getMLText('revision_summary'));
$menuitems['revision_summary'] = array('link'=>$this->params['settings']->_httpRoot."out/out.RevisionSummary.php", 'label'=>getMLText('revision_summary'));
/* Do not use $this->callHook() because $menuitems must be returned by the the
* first hook and passed to next hook. $this->callHook() will just pass
@ -1057,11 +1057,11 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
if($accessobject->check_view_access(array('Hooks', 'NotificationServices'))) {
$menuitems['debug'] = array('link'=>"#", 'label'=>getMLText('debug'));
if ($accessobject->check_view_access('Hooks'))
$menuitems['debug']['children']['hooks'] = array('link'=>"../out/out.Hooks.php", 'label'=>getMLText('list_hooks'));
$menuitems['debug']['children']['hooks'] = array('link'=>$this->params['settings']->_httpRoot."out/out.Hooks.php", 'label'=>getMLText('list_hooks'));
if ($accessobject->check_view_access('NotificationServices'))
$menuitems['debug']['children']['notification_services'] = array('link'=>"../out/out.NotificationServices.php", 'label'=>getMLText('list_notification_services'));
$menuitems['debug']['children']['notification_services'] = array('link'=>$this->params['settings']->_httpRoot."out/out.NotificationServices.php", 'label'=>getMLText('list_notification_services'));
if ($accessobject->check_view_access('ConversionServices'))
$menuitems['debug']['children']['conversion_services'] = array('link'=>"../out/out.ConversionServices.php", 'label'=>getMLText('list_conversion_services'));
$menuitems['debug']['children']['conversion_services'] = array('link'=>$this->params['settings']->_httpRoot."out/out.ConversionServices.php", 'label'=>getMLText('list_conversion_services'));
}
}

View File

@ -818,7 +818,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
if ($accessobject->check_view_access('ManageNotify'))
$menuitems['edit_notify'] = array('link'=>$this->params['settings']->_httpRoot."out/out.ManageNotify.php", 'label'=>getMLText('edit_existing_notify'));
$menuitems['2_factor_auth'] = array('link'=>"../out/out.Setup2Factor.php", 'label'=>getMLText('2_factor_auth'));
$menuitems['2_factor_auth'] = array('link'=>$this->params['settings']->_httpRoot."out/out.Setup2Factor.php", 'label'=>getMLText('2_factor_auth'));
if ($this->params['enableusersview']){
if ($accessobject->check_view_access('UsrView'))