This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is using WPML with Rank Math's "Strip Category Base" option, which removes the word 'category' from the category slug. However, this causes an issue with the WPML language switcher on category pages, leading to 404 errors when switching languages because the switcher includes the word 'category' in the URL.
Solution:
We tested the functionality on a sandbox site and found that both the category link in the menu and the language switcher were working correctly. The issue may have been related to a delay on the CDN, which caused some links to point to the wrong address after changes were made. It could also be related to the Elementor switcher block. The client will test on their end without the CDN and with the Elementor version of the switcher to confirm if the problem persists. If the issue is still present without the CDN and with the Elementor switcher, the client is advised to open a new support ticket. For now, the problem is considered resolved.
If this solution doesn't look relevant to your situation, please open a new support ticket.
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.