WPML

Overview of the Issue

When a site is installed in a subfolder and the option “Different domain per language” is selected in WPMLLanguages, 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

This issue is fixed in WPML Multilingual CMS 3.3.7. Updating solves it on your site, so you only need this workaround if you can’t update yet.

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 )) { 

All known issues

Still Seeing This Issue?

If updating doesn’t fix it, ask a support question and we’ll look into it with you.