For the complete documentation index, see llms.txt. This page is also available as Markdown.

open-url

Open a web page or deep link to an external app from an action, list item, or follow-up action.

This action opens a web page or deep link to an external app. Use open-url in an action list, as swipeable, as rightElement, or after another action completes.

Use the headers option to send custom HTTP request headers with the URL request. This is useful for authenticated reports, internal tools, and other protected resources that require headers such as Authorization or x-api-key.

Configuration options

An open-url action can be set up in various ways:

  1. As a separate action or in the action list.

  2. As a swipeable action in the left or right direction.

  3. As rightElement in the list.

  4. As an associated action in the action list.

Some properties are common to all actions, see Common action properties for the list of actions and their configuration options.

Core structure

title

Provide a title for opening the URL, you can use expressions in the title field.

url

Specify the URL you want opened. The following formats are supported:

https://

www. sitename.com external app link (See the deep link to an external app example)

headers

Optional key/value map of HTTP request headers sent with the request.

You can define headers in three ways:

  • Literal values, for example x-api-key: test-key-123

  • Per-key expressions, for example Authorization: ='Bearer ' & @ctx.solution.state.accessToken

  • A top-level expression that returns an object, for example headers: =@ctx.datasources.config.authHeaders

When headers are present, HTTP and HTTPS URLs open in an in-app browser presented as a full-screen bottom sheet on both iOS and Android.

Considerations

  • When headers are not provided, open-url keeps the existing platform behavior.

  • When headers are provided, HTTP and HTTPS URLs open in an in-app WebView browser on both iOS and Android.

  • The in-app browser follows the active app theme, including light and dark mode.

  • Deep links such as tel:, mailto:, and app-specific schemes are not affected and continue to open normally.

  • HTTP headers can propagate through server-side redirects. Only send secrets to URLs you trust not to redirect to untrusted hosts.

  • On iOS, the App Tracking Transparency prompt applies to the standard in-app browser flow. It is skipped when headers are present.

Examples and code snippets

open-url as an action

Open URL
Open URL

The simplest example of using an open-url action is to use it as a separate action. Thanks to this, a button will appear at the bottom, which, when pressed, will open the specific URL that we set up.

Example: See the full example in <GitHub.

open-url with custom headers

Use https://httpbingo.org/headers to verify which headers are sent. The page echoes the received headers as JSON. In the in-app browser, enable Pretty-print to make the JSON easier to read.

open-url with headers and a redirect

When a URL redirects on the server, the in-app browser follows the redirect without hanging. Headers continue through the redirect chain as part of the platform networking behavior.

open-url swipeable left/right

Swipe to open URL
Swipe to open URL

This example uses the open-url action as a swipeable property. We can choose the swipe direction left or right. After pressing the button, it will open the specific url that we set up.

Example: See the full example in GitHub.

open-url rightElement

Button to open URL
Button to open URL

In this example, we use the open-url action as the rightElement in the list-item component. There is a button for each item.

Example: See the full example in GitHub.

open-url onSuccess

Open URL onSuccess
Open URL onSuccess

n this example, the open-url action is associated with the submit-form action. After we enter the signature and press the "Sign" button, the submit-form action is performed and the specific url will be opened.

Example: See the full example in GitHub.

In this example, the action.open-url is used with a deep link that opens the Google Maps app to a specific location. There are two code examples, one for iOS and the other for Andriod.

Open Google Maps
Open Google Maps

Last updated

Was this helpful?