Resolved

Reported for: WPML Multilingual CMS 3.3.6

Symptoms

When a site is installed in a subfolder and the option “Different domain per language” is selected in WPML > Languages, then there is an issue with Yoast SEO plugin, causing the urls on the site to appear incorrectly – the post/page slug is added twice in the url.

Workaround

In the file: /sitepress-multilingual-cms/inc/wpseo-sitemaps-filter.php

You can change line 48 from:
if ( $path && ( ! $home_url_parsed['path'] || $home_url_parsed['path'] != $path ) ) {

to:
if ( $path && ( ! $home_url_parsed['path'] || $home_url_parsed['path'] != $path ) && ! preg_match( '@'.$path.'$@', $home_url )) {