How to open a url in another tab using router.navigate

I have used router.navigate to redirect to a link. But it is opening the link in same tab. How can i make sure to open it in another tab?

const redirect = async () => {
    router.navigate("https:google.com");
  }

Also, is it possible to stop the prompt that comes every time when we redirect to the url ?

Hi @AnjaliChaudhary :wave:

You can use router.open for this purpose, see: https://developer.atlassian.com/platform/forge/custom-ui-bridge/router/#open

At the moment it’s not possible to stop the navigate prompt, but it’s in our backlog.

Hope that helps :slight_smile:

1 Like

Thanks. It worked.