Resolved
Reported for: WPML Multilingual CMS 4.6.4
Resolved in: WPML 4.6.5
Overview of the issue
WPML forces the URLs to end with a trailing slash (“/”) if a server is uses NGINX and the option “Use directory for default language” is enabled in WPML > Languages.
Workaround
Go to wp-contentpluginssitepress-multilingual-cmsclassescanonicalsclass-wpml-canonicals-hooks.php
Change from:
</div>
<div>public function maybe_fix_nginx_redirection_callback( $redirect ) {</div>
<div>$home_url = trailingslashit( get_home_url() );</div>
<div>
To
</div>
<div>public function maybe_fix_nginx_redirection_callback( $redirect ) {</div>
<div>$home_url = get_home_url() ;</div>
<div>