Hidden Embed URL field giving referrer URL not current URL
-
Hi. I’m creating a form that asks people to update the information on the page (a custom post type). I have a hidden Embed URL field but in the email it is sending the referrer URL (ie the CPT archive) rather than the current url the form is located on.
I see the forminator_get_current_url function uses wp_get_referer() to get the referer, and then url_to_postid to get the post id, and then uses get_permalink on the post_id to get the url.If I go to the page with the form on it, from another page then I get the referer but if I just load the page with the form on it then then I do get the current url.
Is there another way I can get the URL of the page/post/cpt that the form is located on into the email?Also is there a way to see the url in a form field when the form is displayed on the page (ie show the hidden field)? I note that url is not an option in the Post Data field.
The page I need help with: [log in to see the link]
- The topic ‘Hidden Embed URL field giving referrer URL not current URL’ is closed to new replies.