HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

_blank or new browser

SophiaSophia New
edited December 2022 in Vanilla 3.x Help


can you show me the way in PHP to have the "Leaving" function opening a new tab, or a new window, like using the HTML's attributes "target=_blank" or "target=new_window" , instead to open a page in the same that contain the target link?

Thanks in advance!

The original code function:

<?php if (!defined('APPLICATION')) exit(); ?>


   <?php echo $this->data('Title'); ?>



   <?php echo sprintf(

       t('You are now leaving %1$s. Click the link to continue to %2$s.'),

       c('Garden.Title', ''),


   ); ?>


Sign In or Register to comment.