• We’ve a site on staging that is using polylang for translations. The mentioned URL is for thankyou page of the french version. But when you go down and fill something down here “Ne manquez jamais une occasion pour économiser” and then click on “Restez informé”. You’ll be easily able to pick that the URL passed to /?es=subscribe is of dutch version instead.

    I even tried to inject my own function manually inside plugin but even then it failed as even on the following implementation inside es-defined.php. It still returns the dutch version’s URL which is the base URL of the site.

    if(!function_exists('home_url_wrapper')) {
    	function home_url_wrapper($path = '', $currentUrlFromServer = true) {
    		if($currentUrlFromServer) {
    			return $_SERVER['HTTP_HOST'] . $path;
    		}
    
    		$siteUrl = get_site_url(null, $path);
    
    		if(strpos($siteUrl, '/wp') !== false) {
    			$siteUrl = str_replace('/wp', '', $siteUrl);
    		}
    
    		return $siteUrl;
    	}
    }

    Can you tell me a way so that I an modify it in a way that this plugin gets load after polylang so we’ve correct domain names? It even gets loaded before theme functions.php so I’ve very limited options to play with it. Any help would be really appreciated.

    • This topic was modified 5 years, 5 months ago by imranz.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hi,

    Thank you for contacting us.

    Would like to update you that Email Subscribers currently does not support multilingual sites.

    We are working on the support of Multilingual support in Email Subscribers and we will have it soon.

    Hope this helps you.

Viewing 1 replies (of 1 total)
  • The topic ‘Wrong URL taken for /?es=subscribe AJAX requests’ is closed to new replies.