This thread is resolved. Here is a description of the problem and solution.
Problem:
The client updated the slugs for custom post types (CPTs) in different languages using WPML settings but encountered issues where the CPT pages sometimes display a 404 error or redirect to the homepage after the first page refresh. This issue persists even after clearing various caches.
Solution:
We recommend the following steps to troubleshoot and potentially resolve the issue:
1. Ensure that the slug translations are correctly set for each CPT in WPML -> Settings -> Post types translation.
2. Clear the WPML cache by navigating to WPML -> Support -> Troubleshooting -> Clear the cache in WPML.
3. Also, clear the full site cache on your hosting provider's dashboard.
4. If the issue persists, it might be related to how caching is handled on your server. Since the client's server is with Kinsta and caching cannot be disabled, consider testing changes in a staging environment where caching is not enabled.
If these steps do not resolve the issue or if it reoccurs, it might be due to a configuration that is specific to your environment or possibly an outdated solution. 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 the problem continues, please open a new support ticket with us for further assistance at WPML support forum.
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.