Background of the issue:
I am trying to use the language switcher on our website, and it's showing non-published translations. The issue can be seen on this page: hidden link. The hreflang links are also affected, as shown in the code: .
Symptoms:
The language switcher is showing non-published translations, leading to 404 errors. I see links like hidden link in the source code that creates 404 errors.
Questions:
Why is the language switcher showing non-published translations?
How can I hide unpublished post translations to prevent 404 errors?
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.