Hello,

We are trying to make a new tab on osticket to link to an external page. We already modify class.nav.php and we are able to go to the external site.

The problem appear when we try to add 'target'=>'_blank' and didn't work.

Our server details:
Versión osTicket v1.15.1 (fe1d1f8)
Servidor del Software Web Apache/2.4.41 (Ubuntu)
Versión MySQL 8.0.26
Versión PHP 7.4.15

We tried to do something like that inside "function getTabs()":
$this->tabs['inventario'] = array('desc'=>('Inventario'),'href'=>'inventario.php','title'=>('Inventario'), 'target'=>'_blank');

Best regards,

We also tried using:

$this->tabs['inventario'] = array('desc'=>('Inventario'),'href'=>'inventario.php' , 'linkOptions' => array('target'=>'_blank'), 'title'=>('Inventario'), "class"=>"no-pjax");``

We are not sure if this is the correct way but we solved it using:

$this->tabs['inventario'] = array('desc'=>__('Inventario'),'href'=>'inventario.php "" target="_blank"', 'title'=>__('Inventario'), "class"=>"no-pjax");

Original code:
$this->tabs['tickets'] = array('desc'=>__('Tickets'),'href'=>'tickets.php','title'=>__('Ticket Queue'));

Write a Reply...