Support » Plugin: Contact Form 7 Dynamic Text Extension » CF7_URL adding 443 in URL

Viewing 7 replies - 1 through 7 (of 7 total)
  • I’ve encountered this as well.

    Is this down to server/site config, or is it a known issue?

    Same here, i am getting same issue.
    URLs being shown with :443 port
    We are on Kinsta host, could be static cache as issue?

    Hi,

    I have the same issue.
    Any solution over there?
    Thank you 🙂

    Victor

    Hi there,

    Same issue here.
    Any leads would be greatly appreciated.

    +

    I ended up just creating custom tags – https://contactform7.com/2015/01/10/adding-a-custom-form-tag/

    Ace, thank you.
    I did managed to set the “clock” demo.
    It’s a pretty good method to learn how to make a custom tag ; but how can I transform the “clock” demo to have a custom tag able to retrieve the current page url juste like “CF7_URL” does ?

    “CF7_URL” is adding the port number (ex: https://www.xxxxxxx.com:443/pageurl) when I use it like this [dynamictext dynamicurl “CF7_URL”] , and this cause that my CRM is no longer able to retrieve informations received via CF7.

    I also tested this method, but I did not manage to make it work : https://wordpress.org/support/topic/433/

    function cf7_url(){
    	$pageURL = 'http';
     	if( isset( $_SERVER["HTTPS"] ) && $_SERVER["HTTPS"] == "on"){ $pageURL .= "s"; }
     	
     	$pageURL .= "://";
     	
     	$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
    
     	return $pageURL;
    }
    add_shortcode('CF7_seb_URL', 'cf7_seb_url');

    Any help ?

    +

    • This reply was modified 3 months, 1 week ago by  eightnight.
    • This reply was modified 3 months, 1 week ago by  eightnight.

    Nevermind, this works very well :

    add_filter("wpcf7_posted_data", function ($wpcf7_posted_data) {
        $post = get_post($wpcf7_posted_data["_wpcf7_container_post"]);
        $wpcf7_posted_data["containerURL"] = get_permalink($post);
        return $wpcf7_posted_data;
    });
Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.