Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-25730

Can't open URL in a new tab from Event Links menu

XMLWordPrintable

    • 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

            zabbix.dev Zabbix Development Team
            yuriip Yurii Polenok
            Team B
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: