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

Redirect parent if the form is in an iframe #7515

wants to merge 1 commit into
base: staging


None yet
1 participant
Copy link

commented May 10, 2019

Please be sure you are submitting this against the staging branch.

Bug fix? Y
New feature?
Automated tests included?
Related user documentation PR URL
Related developer documentation PR URL
Issues addressed (#s or URLs)
BC breaks?


This fixes the issue where an iframe is redirected instead of the parent page when Mautic is embedded in an iframe.

Steps to reproduce the bug:

  1. Create a form that redirects to a URL on submit
  2. Copy both the JS and iframe means of embedding a form into an HTML page
  3. Visit the page.
  4. Submit the JS generated form and notice the page will redirect
  5. Go back and submit inside an iframe and notice that it redirects inside the iframe instead of the parent page.

Steps to test this PR:

  1. Repeat (you may need to clear your browsers cache or open dev tools to ignore cache) and this time both methods will redirect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.