This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is experiencing issues with links on translated pages pointing to the English versions despite running the 'Translate Link Targets' function and clearing the cache. Additionally, the client wants to change all translated URLs to use the English alphabet to avoid unicode characters in URLs. Lastly, there is a specific link to the homepage that, even when translated, redirects to the English homepage instead of the translated versions.
Solution:
For the general link translation issue:
1. Open the page in the default language for editing.
2. Edit the translation.
3. In the Advanced Translation Editor (ATE), search for the links (i.e., 'http' or 'https').
4. Correct the link to the translated version manually.
For more details, see how to translate URLs with the Advanced Translation Editor.
Regarding the unicode characters in URLs, this is not an issue as browsers convert them to readable formats automatically. For more information, see Unicode characters in URLs and URL Encoding Reference.
For the specific link to the homepage:
1. Register the Kadence block in WPML -> Settings -> Custom XML Configuration using the following code:
<wpml-config> <gutenberg-blocks> <gutenberg-block type="kadence/advancedheading" translate="1" label="Kadence: Advanced Heading"> <key name="link" /> </gutenberg-block> </gutenberg-blocks> </wpml-config>
For more details, see how to make custom Gutenberg blocks translatable.
2. Update the English page to trigger the changes.
3. Update Greek and Russian translations.
4. Search for 'http' in ATE and fix the home link as per the translation.
5. Repeat for other pages using this block for the home link.
If this solution doesn't look relevant, please open a new support ticket 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.
This topic contains 19 replies, has 3 voices.
Last updated by 1 year, 2 months ago.
Assisted by: Waqas Bin Hasan.