Form redirect bug: & is replaced by #038;
-
Hi,
I have a form that does some calculations and then redirects on submission to a results page, where it passes these parameters:
?a=5&b=10
This used to work fine, but some update broke it and the form now redirects to:
?a=5#038;b=10
The
&
is being replaced with#038;
and it is breaking my results page because I cannot parse the URL params from it.I’ve searched and I have found multiple threads about this. One from here said use AJAX instead of page reload. This worked but it introduced a new problem. Just before the redirect, it flashes the beginning of the form for a few seconds, where I have a welcome message and instructions. To the user this is confusing submission behaviour and makes the form seem broken – as if it had reset to the beginning – before you are taken to the results page.
Another I found on the WPMU Dev forum said edit the
forminator/build/front//front.multi.min.js
file and replace(i.location.href = o.data.url)
with(i.location.href = o.data.url.replace("#038;","&"
;)
.replace("&&","&";)) but I can’t find that line anywhere in the file. It must’ve changed in an update.Please help!
- The topic ‘Form redirect bug: & is replaced by #038;’ is closed to new replies.