Background of the issue:
I am working on a multilingual website using WPML and would like to know if it's possible to conditionally hide links that point to content which hasn't been translated yet. I am using relative links.
Symptoms:
I could not find an answer in the forum and documentation.
Questions:
Is it possible to automatically hide or remove links in my content if the target of those internal links does not have a translated version available in the current language?
The second link works as expected, yes. However, the first links still point to the German version. Hence, my question if there is a way of either not showing links on translated pages that target untranslated original sites or redirect to index page of translated language.
Regarding your question, "not showing links on translated pages that target untranslated original sites or redirect to index page of translated language."
not showing links on translated pages that target untranslated original sites - No this is not possible.