Opening New Tabs with BF_SecAction_path

Alex Mitchell:
using BF_SecAction_path to go to certain page. how would I adjust the options to open as a new tab in the browser


Jason Wood:
Pretty sure path action cannot open in new tab. You need a JavaScript function.

window.open(url, ‘_blank’).focus()

Browser decides if it’s a new window or tab. Pop up blocker may block it if it’s not closely associated with a click.


Alex Mitchell:
thanks Jason


Andrew Dam:
The path action is able to open a new tab by setting a url key in the options instead of the path key.

However the BF_SetAction_Path custom function only sets the path key. Fortunately there is a workaround using the default BF_SetAction custom function.

BF_SetAction ( "path" ; JSONSetElement ( ""; "url"; "<https://www.google.com/>"; JSONString))