Background of the issue:
I am trying to ensure that our language switcher for blog posts functions correctly. The main language on the site is English, and we have translations in Spanish. I manually added a link in the content for a blog post linking to its Spanish counterpart. The issue can be seen on this page: hidden link. I expected to see a button just above the content (Click here for Spanish) linking to hidden link, which is the Spanish version of the page.
Symptoms:
When the page is rendered in English, the link is changed to the English version, hidden link. It seems like WPML is automatically switching the url in the code back to English.
Questions:
Why is the manually added link to the Spanish version being changed to the English version?
Is there a way to prevent WPML from automatically altering the link?