diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php index 3a4ca01ebb..a06845064f 100644 --- a/pandora_console/include/functions_html.php +++ b/pandora_console/include/functions_html.php @@ -2931,6 +2931,7 @@ function html_print_anchor( 'class', 'title', 'onClick', + 'target', ]; $output .= (isset($options['href']) === true) ? 'href="'.io_safe_input_html($options['href']).'"' : ui_get_full_url(); diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index 45aa64df22..5c5a74b27b 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -1445,11 +1445,13 @@ function ui_format_alert_row( if (is_metaconsole() === true) { // Do not show link if user cannot access node if ((bool) can_user_access_node() === true) { - $url = $server['server_url'].'/index.php?'.'sec=estado&'.'sec2=operation/agentes/ver_agente&'.'id_agente='.$agente['id_agente']; + $hashdata = metaconsole_get_server_hashdata($server); + $url = $server['server_url'].'/index.php?sec=estado&sec2=operation/agentes/ver_agente&loginhash=auto&loginhash_data='.$hashdata.'&loginhash_user='.str_rot13($config['id_user']).'&id_agente='.$agente['id_agente']; $data[$index['agent_name']] .= html_print_anchor( [ 'href' => $url, 'content' => ''.$agente['alias'].'', + 'target' => '_blank', ], true ); diff --git a/pandora_console/operation/agentes/alerts_status.php b/pandora_console/operation/agentes/alerts_status.php index 68988900bc..cf2b819f6f 100755 --- a/pandora_console/operation/agentes/alerts_status.php +++ b/pandora_console/operation/agentes/alerts_status.php @@ -402,6 +402,7 @@ if ($agent_view_page === true) { 'no_toggle' => true, 'class' => 'flex', ], + 'start_disabled' => true, ] ); } else { @@ -585,10 +586,6 @@ function alerts_table_controls() { } $(document).ready ( function () { - if ($('#filter_applied').val() == 0){ - $('#button-form_alerts_status_datatable_search_bt').trigger('click'); - $('#filter_applied').val(1); - } alerts_table_controls(); $('#button-alert_validate').on('click', function () { validateAlerts(); diff --git a/pandora_console/operation/agentes/status_monitor.php b/pandora_console/operation/agentes/status_monitor.php index a19da7be26..5d707d8476 100644 --- a/pandora_console/operation/agentes/status_monitor.php +++ b/pandora_console/operation/agentes/status_monitor.php @@ -1729,7 +1729,7 @@ if (empty($result) === false) { false ); echo ''; - $agent_link = ""; + $agent_link = ""; $agent_alias = ui_print_truncate_text( $agent_alias,