How to make Row_Inserted open new window?

In v2024 I had a line in Row_Inserted to close the current tab and open a new one on another app....

$this->terminate("https://www.xxx.com/apps/yyy/login.php");

This no longer works in v2026 - although the new record is added, the Add page just hangs.

Two questions:

  1. How do I get this to work in v2026

  2. I'd now like to open the second tab but NOT close the running app. How can I open this other url in a new tab while leaving the main app running?

Thanks

  1. To redirect after inserting a record, you may use Return Page for After Add.
  2. To open another window, you need to use JavaScript. Return Page only redirects. (Assume you are not using modal dialog.) However, you can try to set the Return Page as your custom redirect page (e.g. a Custom File) which output JavaScript to open a new window and then redirect to where you want to go.

Thanks for the help