This thread is resolved. Here is a description of the problem and solution.
Problem:
If you're experiencing issues where WPML automatically adds language subfolders (e.g., /nl/) to Lasso cloaked links on your multilingual WordPress site, causing the links to break on translated pages, we can help.
Solution:
We recommend adding a specific filter to your theme’s functions.php file to exclude certain links from being automatically translated by WPML. Here’s how you can do it:
add_filter( 'wpml_sl_blacklist_requests', 'wpml_sl_blacklist_requests', 10, 2 );<br />function wpml_sl_blacklist_requests( $blacklist, $sitepress ) {<br /> $blacklist[] = 'your-slug-here';<br /> return $blacklist;<br />}
Replace 'your-slug-here' with the slug of the page in the original language that you want to link to without translation interference. For example, if you want to link to an English page with the slug 'premium-dip-belt-calisthenics-equipment-by-gornation', you would add this slug to the $blacklist array.
If this solution does not fully resolve your issue or seems outdated, or if your case requires a more tailored approach, 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. Should you need further assistance, please do not hesitate to open a new support ticket with us 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 3 replies, has 1 voice.
Last updated by 2 weeks, 5 days ago.
Assisted by: Dražen.