Open
Reported for: WooCommerce Multilingual & Multicurrency 5.3.5
Overview of the issue
If you set the Language URL format as Language name added as a parameter, you will experience that after logging out from My Account page in a secondary language, you are redirected to the wp-login.php instead of staying on the My Account page.
Workaround
Please, make sure of having a full backup of your site before proceeding.
- Add the following code in your theme’s functions.php file:
add_filter( 'logout_url', function( $url ) { return str_replace( '&', '&', $url ); }, 5 ); // Priority 5 to run before WPML's Core filter.
Alternatively, you can turn off the Allow translating the login and registration page option in WPML > Settings page..