How to open a link into browser when a link is clicked?

I want to put links to my plugin documentation, how could I make the user open the link into the browser when click a text or div, etc. ?

Here’s an example of what I want the user to click:

Thanks!

const shell=require("uxp").shell;
shell.openExternal("https://myLink.com");

Or, you can also use the sp-link element.

1 Like

Make sure to have your domain whitelisted in the manifest, like:

"requiredPermissions": {
        "launchProcess": {
            "schemes": [
                "https"
            ]
        },
        "network": {
            "domains": [
                "https://www.compositenation.com"
            ]
        }
    },
1 Like

Ii wasn’t working until I put the launchProcess key inside the manifest. Thank you! Even simple works now!

"launchProcess": {
  "schemes": [
      "https"
  ]
},