FORMINATOR: REFER / EMBED URL NOT CORRECT
-
Hi,
I’m currently using forminator to create contact forms, but there’s a problem: the refer URL or embed URL is not correct.
For example, when I send a message from a contact form on the “Contact Us” page, but the email shows, I received this request from ” Homepage.com”.
How can I fix this?
-
Hi @amberllll
I hope you’re well today!
This is usually happening if the form is loaded in some sort of “ajax-loaded” tabs or the page itself is loaded using ajax instead of a “regular way” but there may be also other factors affecting this – e.g. some conflict with some other code.
Would you mind sharing a link to the page with with form in question so we could take a closer look, please?
Kind regards,
AdamThanks for your reply!
Actually, the website is offline now, but I just published one page and one post for you to reference. Here are the links: https://speed-cushion.com/contact-us/, https://speed-cushion.com/guide/.
I actually found some patterns, if I go directly to this page, then the link given by the form is correct. But if I jump from one page to another, then the link given by the form will be the former. (For example, I jump from “Contact us” to “guide”, and I send a enquiry from “guide”, but the link would be : contact-us.com, instead of “guide.com”.
Thank you again!
Hi @amberllll,
I couldn’t replicate such an issue when tested on my server. Possible to share the form export, so that we could give a closer look at the existing settings?
Please check the following doc on how to export a form:
https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#import-exportIf you are concerned about any sensitive information in the form export, then you can duplicate your form, remove any sensitive information, and then export it.
You can share the export file via Google Drive, Dropbox or any cloud services in the next reply.
Looking forward to your response.
Kind Regards,
NithinHere is the export file via Google Drive:
https://drive.google.com/file/d/13GU15P1WqC3jb1CVJqu1bnb7jDElnJyH/view?usp=sharing
Best Regards,
Amber
Hi @amberllll
I have made test on my lab site and all seems to work correctly, no matter on which page I will place that form.
Could you:
- Run a conflict test? Please deactivate all plugins except Forminator and check if the problem is gone. If so, then enable all plugins one by one and find which one is having a conflict. If there is no positive result, switch to the default WordPress theme like 2019, and see if it works. Before this test, we recommend full site backup or running this test on the staging site.
- Test {embed_title} instead of {refer_url} and see will it give same results?
Kind Regards,
KrisI desactive all plugins, but the problem is still there.
This {title} works, it’s the right website title. But the {url} is not always right.
Hi @amberllll
I see that the test page is no longer active (at least there’s no form there) so we can’t check it. The form itself is a very basic and simple form that doesn’t really contain anything specific. It actually works fine on my test sites as well.
So yes – I’d say it is in some way related to specifics of your site. I just re-read this entire conversation and at some point you mentioned that when you enter given page URL directly, it’s fine but only becomes wrong if you switch to given page from other one.
One of the most common cases here could be cache so please try setting these two options on the form:
– enable “Load form using AJAX” option
– enable “Prevent page caching on form pages” optionBoth are in “Behavior” settings of the form.
Then clear all cache on site/server and test again. If the issue still isn’t solve, please do as follows:
1. add two fields of type “hidden” to the form
2. for the first field set the “Default Value (optional)” to the “Embed Post/Page Title” option
3. for the second field set the “Default Value (optional)” to the “HTTP Refer URL”
4. update the form
5. put the form back on the test page and confirm that the issue is still happening
6 and if yes, please publish that test page again and share the link to it so we could take another closer lookKind regards,
AdamHello Adam! @wpmudev-support8
It works when I add the field “HTTP Refer URL”, and the URL is right!
But the “Embed Post/Page Title” doesn’t always show. I can show you the screenshot.
This is the one that shows everything: https://drive.google.com/file/d/1646xbxKKy0iXbBAehHOsc54pZKVbfZob/view?usp=share_link
However, this is the one that doesn’t show “Embed URL” and “Embed Title”: https://drive.google.com/file/d/10-mwWsYAltfb0-zXxAb2d9W9GN6r915U/view?usp=share_link
Anyway, thanks for your reply! My question has been solved as I can use a hidden field ” Refer URL” instead of putting it on Email Notifications!
Hi @amberllll
Thanks for response!
However, this is the one that doesn’t show “Embed URL” and “Embed Title”:
That would definitely be related to some specific aspect of site configuration but I’m glad that the “hidden field” trick solves the issue for you.
As you confirm that your question has been solved, I’m marking this ticket as resolved but if you decide you’d like to get back to this in future, please update us (or start new ticket) and we’ll be happy to help.
Best regards,
Adam
- The topic ‘FORMINATOR: REFER / EMBED URL NOT CORRECT’ is closed to new replies.