Sample flows

This article presents possible use cases and corresponding sample flows that you can support. This can be a helpful jumping off point as you plan your implementation.

Direct Wix users to a site editor

You might choose to direct a Wix user with collaborator permissions to the site editor to place an app's visual extension in the site.

  1. Include a call to action that redirects to the editor - for example, a button.
  2. Whenever the Wix user clicks the button, call Get Editor URLs.
  3. Redirect the Wix user to the URL specified in the editorUrl parameter.

Direct Wix users to preview the latest site changes

If a Wix user makes changes in the site editor, or to an app's behavior or UI, you might choose to direct them to preview those changes using Wix's site preview feature.

  1. Include a call to action that redirects to preview the site - for example, a button.
  2. Whenever the site builder clicks the button, call Get Editor URLs.
  3. Redirect the site builder to the URL specified in the previewUrl parameter.

Note: The site preview feature will not be able to display any embedded script extensions.

Did this help?