Skip to content

Link to sandbox endpoint always opens in new tab #666

@jkjustjoshing

Description

@jkjustjoshing

Background

I'm rendering the following Typeform embed

<Widget
  {...}
  enableSandbox={isStaging}
  redirectTarget="_self"
/>

In production, when a user completes the form, the iframe (because of redirectTarget="self") redirects to my ending URL. This URL uses window.parent.postMessage() to send a message to my SPA to update the UI as appropriate.

The problem

In Sandbox mode, the Typeform iframe redirects to a final page that displays a link to the ending URL. If I click on that URL, I expect the same behavior as if the user submitted the form in non-sandbox mode (besides the lack of a form submission). Namely, I expect the redirect to the ending URL to happen inside the iframe due to my redirectTarget setting.

Requested solution

If my embed is running in sandbox mode, the ending URL link displayed after completing the form should be equal to the redirectTarget value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions