Are you using Contact form 7 with Popup plugin and trying to fetch URL from which the leads has been generated? Does your plugin is not providing proper URL and breaking URL details like www.example.com/&lang ? Don’t worry, we also had same issue and here is the fix we implemented to resolve this issue within 5 minutes.
Before I jump to the solution, I know there are many of our readers not familiar with these plugins and here is the brief information about it:
What is Contact Form 7 Plugin?
Contact Form 7 is a popular WordPress plugin used to send email about inquiries or bookings directly from the web pages. It is one of the most popular wordpresss plugin with over 1+ millions active installs.
Users generally use contact form 7 on web pages but in our case the requirement was bit different. We were displaying the popup when someone click on book now button and that form was built using Popup plugin with contact form 7 interface. We used this plugin on different pages which provides some products. Contact Form 7 also provides Special Mail Tags to send product page URL’s along with the Email so one can understand from which product page you got the inquiry Email.
Problem
After filling the contact form on Popup it sends us email with URL breaking with “&Lang” at the end of home URL like www.example.com/&lang. We have checked many online threads and found that many wordpress users were facing similar problems. We tried and tested various codes and customized the source code as well but didn’t work.
Solution
Finally we found a solution and it was just a 2 minutes of job! Yes, you don’t need to change anything in Code. All you need to do is just go to Popups plugin settings and uncheck the “Ajax Mode?” option. It will give the complete URL of particular page where visitors filled up the form.
And it done!
If you are also facing the same problem, just try this simple solution and share your feedback here by comment. If you are still not able to resolve this issue, let us know and we will come up with the customized solution for you.