Skip Navigation

Open

Reported for: WooCommerce Multilingual & Multicurrency 5.3.5

Topic Tags: Bug, WCML

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..

Leave a Reply

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>