-
Problem report
-
Resolution: Unresolved
-
Trivial
-
7.0.6
-
S24-W50/51/52
-
0.25
Broke after ZBX-24972.
Steps to reproduce:
Add URL into event menu using frontend module.
$main_block['data']['urls'][] = [ 'label' => $grafana_dashboard_name, 'menu_path' => '', 'url' => $grafana_dashboard_url, 'target' => '_blank', 'confirmation' => '', 'rel' => 'noopener noreferrer' ];
Result:
'target' => '_blank' is ignored and the URL is opened in the same browser tab.
Expected:
The ability to open links in the same or a new browser tab depending on the needs and tasks of the user.
Temporarily fixed by adding
item.target = data.params.target;
to the /usr/share/zabbix/js/menupopup.js