We are not sure why this is happening that is why we need you to follow the steps below to make sure we eliminate possible causes one by one:
Clear Cache
- IMPORTANT STEP! Create a backup of your website.
- Go to "WordPress Dashboard > WPML > Support".
- Click the "Troubleshooting" link.
- Click the buttons below:
- Disable cache for language switcher templates
- Clear the cache in WPML
- (Do not click any other buttons_
- Go to "WordPress Dashboard > Settings > Permalinks".
- Click the "Save" button without changing anything to purge permalinks cache.
Redirect Plugin
Check the "Redirect" plugin settings to see if there is a redirection set there for some reason to the staging version. Try to delete if there are some and deactivate the plugin and test.
Change the link format and turn it back again
- IMPORTANT STEP! Create a backup of your website.
- Go to "WordPress Dashboard > WPML > Languages > Language URL Format".
- Check the "Different languages in directories" checkbox.
- Click the "Save" button.
- Go to "WordPress Dashboard > Settings > Permalinks".
- Click the "Save" button to flush the permalinks cache.
- Check if the problem is not there anymore.
- Switch back to separate domain mode again.
- Cache was never enabled for language switcher templates.
- Saved Permalinks as requested
- Nothing in Redirection for stage site
- Changed the link format from Directories to Parameter, Saved, then reverted back again
- Purged cache in CloudFlare