• Resolved kreattivo

    (@kreattivo)


    We have forms on several pages under submenu domain but the output is always showing only the domain. Whats wrong?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Tessa (they/them), AuRise Creative

    (@tessawatkinsllc)

    Hello!

    Can you please copy/paste what the form tag that is causing problems looks like in your form editor template here? That will let me know what shortcode you’re using.

    If the website is public, please share the URL so I can take a look. No usernames or passwords, please!

    Thread Starter kreattivo

    (@kreattivo)

    Hi, forms are here: https://business.rentedrive.it/auto/jeep-avenger/ and we are using the [dynamichidden UrlPagina “CF7_URL”]

    Plugin Author Tessa (they/them), AuRise Creative

    (@tessawatkinsllc)

    Ah, I see what you mean. It’s returning https://rentedrive.it/auto/jeep-avenger/ when it should return https://business.rentedrive.it/auto/jeep-avenger/

    Is your WordPress installation a multisite using subdomains by chance?

    Thread Starter kreattivo

    (@kreattivo)

    Yes, you’re right. It is a multisite using subdomains.

    Plugin Author Tessa (they/them), AuRise Creative

    (@tessawatkinsllc)

    While I fix this bug, try enabling the?new cache compatibility mode?for that form tag as a workaround. It uses JavaScript to get the URL instead.

    Plugin Author Tessa (they/them), AuRise Creative

    (@tessawatkinsllc)

    I haven’t been able to reproduce this error.

    Both network_home_url() and home_url() returns the current subdomain in my tests. But I’m also using apache and I can see you’re using Nginx, so there might be something there.

    This is what I have in my test environment’s wp-config.php file for the multisite. Are any of yours different?

    /** Site Domain */
    define('DOMAIN_CURRENT_SITE', filter_input(
        INPUT_SERVER,
        'HTTP_HOST', // Relative URLs for swapping across app service deployment slots
        FILTER_SANITIZE_URL //Remove all characters except letters, digits and $-_.+!*'(),{}|\\^~[]`<>#%";/?:@&=.
    ));
    define('WP_HOME', 'http' . (FORCE_SSL_LOGIN ? 's' : '') . '://' . DOMAIN_CURRENT_SITE); // Override database value
    define('WP_SITEURL', WP_HOME); // Override database value
    
    /** Multisite */
    define('WP_ALLOW_MULTISITE', true); // If true, a multisite network can be created
    define('MULTISITE', true); // If true, this is a multisite network
    define('SUBDOMAIN_INSTALL', true); // Use subdomains for subsites
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);
    define('NOBLOGREDIRECT', WP_HOME); // If registration is disabled, redirect visitors of a non-existent site to the homepage
    }
    Plugin Author Tessa (they/them), AuRise Creative

    (@tessawatkinsllc)

    Okay, try updating to version 3.5.2 and let me know if that fixes your issue. It’s kind of a stab in the dark because I couldn’t reproduce your issue exactly, but if it works, it works!

    Plugin Author Tessa (they/them), AuRise Creative

    (@tessawatkinsllc)

    I can see the issue is resolved on your webpage so I’m marking it here. Cheers! ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘CF7_URL return only domain and not SUBDOMAIN’ is closed to new replies.