Automatically Sync URL
You can use the following snippet when configuring the SDK, which will implement a handler that syncs the Activepieces iframe with your browser:The following snippet listens when the user clicks backward, so it syncs the route back to the iframe using
activepieces.navigate
and in the handler, it updates the URL of the browser.Navigate Method
If you useactivepieces.navigate({ route: '/flows' })
this will tell the embedded sdk where to navigate to.
Here is the list for routes the sdk can navigate to:
Route | Description |
---|---|
/flows | Flows table |
/flows/{flowId} | Opens up a flow in the builder |
/runs | Runs table |
/runs/{runId} | Opens up a run in the builder |
/connections | Connections table |