Support » Plugin: Redirection for Contact Form 7 » ipad issue

  • Resolved delawaregrad


    What a find!! Thank you.

    I have a redirect connected to Contact Form 7 that goes to another page on the site. It works great, except on my ipad. The page simply refreshes. I do not have checked off ‘Use External’ or ‘Open in new Tab’

    Is there an issue with the ipad?

    thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hmm, I just tested on my iPad as I’m currently working on a bunch of redirects and it worked fine for me. I think there used to be an issue with using “location =” to redirect versus “location.href =” but that doesn’t seem to be an issue now. Are you on an older version of iOS?

    Thanks for the response. Yes, it’s second or third generation, so it’s old. I’m sure that’s it. I created a survey & the client is taking to a trade show and will be using a tablet. Tbey plan to test it out this weekend, so I’ll hear if there’s an issue.

    Great plugin. I had a bunch of redirects in functions.php and this is much better.

    Which version of iOS are you on, out of curiosity? iPad 2/3 can only go up to iOS 9, so that may be the issue.

    Here’s a fix to try which could confirm if my suspicion is correct, and if so maybe the plugin author can roll this into the next update. Open /plugins/wpcf7-redirect/js/wpc7-redirect-script.js or go to Plugins > Editor > Contact Form 7 Redirection and click on wpc7-redirect-script.js and replace:

    line 26:
    location = form.thankyou_page_url;
    location.href = form.thankyou_page_url;

    and if you’re using any external URLs, also replace:

    line 17:
    location = form.external_url;
    location.href = form.external_url;

    Then reload your form page and try again, see if that fixes the redirect issue.

    Plugin Author yuvalsabar


    Thank you for your report. Just checked with iPad 4 and Safari and Chrome – there seems to be a problem with redirection. We will update the plugin with a fix within a week.

    @fastasleep, Thank you for your suggestion. We will try your solution and update.

    Plugin Author yuvalsabar


    Issue resolved in version 1.2.1.

    Thanks for getting that out. Unfortunately, it’s not working on my iPad (second generation). I know it’s old, so I’m willing to give up, but I know people still use them. Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘ipad issue’ is closed to new replies.