This thread is resolved. Here is a description of the problem and solution.

Problem:
The user was having an issue with the plugin, when he switched to the secondary language in the admin top bar, the logout link does not work anymore and only redirects to the homepage without logging out the user.
Solution:
It is a compatibility issue and we could solve it by patching the plugin. The patch is changing or commenting line 151 of the same file "/classes/plugin.php" with the following.

return $this->user_trailingslashit( site_url( '/', $scheme ) . $this->new_login_slug() );

0% of people find this useful.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 18 replies, has 3 voices.

Last updated by giulieteA 1 year, 1 month ago.

Assigned support staff: Jamal.

Author Posts
May 13, 2019 at 11:35 pm #3802169

susanS-5

Hi Jamal,

It works, thank you for you super effort!!!
I really appreciate it, thank you!!!

Regards,
Susan

May 14, 2019 at 9:36 am #3805225

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Hi Susan,

Thank you for your feedback. Can you please mark this forum ticket as resolved.

Have a great week.
Jamal

May 14, 2019 at 9:54 am #3805559

susanS-5

My issue is resolved now. Thank you Jamal!

August 23, 2019 at 9:27 am #4445649

giulieteA

Ok, solve