Your code has the correct format. on_sent_ok: “location = ‘URL’;”
However, there could be some error in your URL format.
Kindly provide the exact code in the Additional Settings of your form for me to be able to help you.
Also see Redirecting to Another URL After Submissions for more details about this.
Thread Starter
wcs2
(@wcs2)
Try dropping the!/
from the link as follows:
"location = 'http://nomorecaptchas.com/#register';"
– that should work.
Thread Starter
wcs2
(@wcs2)
Thanks to all who responded. I have been through the support pages and tried adding in wp_head(); to header.php but it did not work. I have also tried adjusting the URL, checking for conflicts with Firebug and even deactivating all other plugins and it still redirects to #wpcf7-f13184-p14791-o1.
Either I’m missing something obvious or the issue is elsewhere.
Did you try my suggestion:
on_sent_ok: "location = 'http://nomorecaptchas.com/#register';"
It solved the problem on another single page website.
Thread Starter
wcs2
(@wcs2)
Hi buzztone, yes, I tried that and it had no effect, regretfully. It takes me to …/#wpcf7-f13184-p14791-o1 regardless.
Suggest you run a JavaScript trace in Firebug to see why this redirection is happening – see https://getfirebug.com/logging.