Problem: The client is trying to add a language switcher widget to the header bar on their website. However, the French page reloads but stays on the French site instead of switching to the English URL. Solution: 1. We recommended updating the URL format to use directories on the live site to see if it resolves the issue. 2. We suggested disabling caching on the site to check if it affects the redirection. 3. We asked the client to provide FTP details for further investigation into potential configuration issues. 4. We advised the client to contact their hosting provider to clarify how the domains are set up and whether they are using two separate databases for the two sites.
If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If issues persist, please open a new support ticket at WPML support forum.