Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link to sandbox endpoint always opens in new tab #666

Open
jkjustjoshing opened this issue Sep 12, 2024 · 3 comments
Open

Link to sandbox endpoint always opens in new tab #666

jkjustjoshing opened this issue Sep 12, 2024 · 3 comments
Labels
bug Something isn't working low priority

Comments

@jkjustjoshing
Copy link

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.

@github-actions github-actions bot added the new Flag for new issues before someone replies label Sep 12, 2024
@mathio
Copy link
Contributor

mathio commented Sep 18, 2024

Hello @jkjustjoshing

how did you setup the redirect in your form? Can you share the form URL, please?

@jkjustjoshing
Copy link
Author

jkjustjoshing commented Sep 18, 2024

Form ID [redacted] @mathio

@mathio
Copy link
Contributor

mathio commented Sep 19, 2024

Thanks you! We have identified the issue.

I will update you here when we have a fix ready, however this is not a priority at the moment. Sorry.

@mathio mathio added bug Something isn't working low priority and removed new Flag for new issues before someone replies labels Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working low priority
Projects
None yet
Development

No branches or pull requests

2 participants