Accessing non https URLs via Workshop

We’re trying to launch a desktop application from a Workshop button using a custom protocol (e.g. lviewer://).

Observations in our FDP environment:

  • Typing lviewer:// (or music://) directly into Chrome works as expected.

  • Triggering the same protocol from:

    • Workshop “Open URL” event

    • Slate (Code Sandbox) via window.open()

    • Slate <a href="lviewer://"> link
      results in nothing happening (no new tab, no prompt).

  • Even window.open("https://www.google.com") from Slate does not open a new tab, suggesting navigation is sandboxed.

Is access to non-HTTPS schemes (custom protocol handlers) intentionally blocked from Workshop/Slate surfaces?
If so, is there any supported way to launch a desktop app via deep link from Foundry (e.g., via a permitted navigation mechanism)?

Thanks in advance.

Hello, chiming in from Slate side

It is indeed the case that in Slate functions’ code is sandboxed and one cannot use window.open() for redirection, but we have a special Action for doing just that - https://www.palantir.com/docs/foundry/slate/concepts-events-and-actions-index/#slateredirecttourl

You can trigger this Action in response to any Slate Event (see https://www.palantir.com/docs/foundry/slate/concepts-events/ for some intro into Events & Actions) - in the screenshots below I set up a button click Event to redirect me to lviewer:// - the browser understands that (although in my case a blank page opens, since I do not have support for this protocol)

Hope that helps!
Damian

Damian, this is very helpful - thank you! Solved.