We want to open in a new tab a link from our app to our website

:point_right: 1. We have a link to open a new tab

<a href="https://myapp.foo.com/bar" target="_blank">Link →</a>

:fire: The open tab is still in a sandboxed env triggering issue like

If we middle click or right click open in new tab this is ok

:bulb: As asked here Please set allow-popups-to-escape-sandbox

:sos: A solution is to add allow-popups-to-escape-sandbox
https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/iframe#allow-popups-to-escape-sandbox

or

allow-top-navigation-by-user-activation <iframe>: The Inline Frame element - HTML: HyperText Markup Language | MDN

Perhaps you have other solution or a process to validate our application to allow this.

Hi @Aurelien_LAJOIE,

Welcome to the Freshworks Developer Community! :tada:

As you have rightly mentioned, the new tab will also come with the sandbox environment properties, and some of the features will be restricted, similar to the app.

We do not have the flexibility to add these sandbox properties to the app by yourself or on our end.

I will record it as a feature request to add this feature to add this header to your app yourself or on-demand at our end. We cannot share any estimated timeline until the feature is picked up, worked on, and released.

Hi Raviraj,

where can we follow the feature request ?
Is the feature accepted ?

Cheers,
Aurélien

I have used the browser’s window.open method to enable users in Freshdesk to click on a button on the ticket detail page (on the ticket_requester_info location) to open links in a new tab, if this works for you.
This would require you to use Javascript to trigger on e.g. click events however. Here is my example (using a Crayons <fw-button>):

linkButton.addEventListener('fwChange', (event) => {
    window.open(<your URL>, "_blank")
  })