We have a client website that has English (/en/) as a default language, and we've created other languages in preparation for translation and globalizing the site. We've turned on item level language fallback
and field level language fallback
. We've also turned on "Enforce Version Presence
". One of the client requirements is to regionalize certain pieces of content so that only certain items show up within certain language/regions.
For our Spanish language, English is our language fallback and it is working correctly.
With Spanish (Mexico) selected, I've created a product page in Spanish (Mexico) (/es-mx/), and I can see the version just fine, however it also creates an English version (because it's the default language of the site?) and I can't find a way to remove the english version successfully.
I've Unchecked Enable Item Fallback and checked Enforce Version Presence, as well as made the English version unpublishable. I've been able to switch to the Web database and remove the English version, and everything works as expected, /en/product-page
comes back as a 404
, while the /es-mx/product-page
displays as expected.
The moment I try to publish the Spanish version of the page, the English version gets re-created within the web database even with the English version marked as unpublishable, and it's now accessible through /en/product-page
.
Is it possible this is a bug, or is this working as intended and I have to custom develop an alternate solution to get around this (item resolver pipeline?).
Edit: ** For clarity, I can successfully remove the English version when I'm on the master database using the standard select englishEnglish language and click Remove - it even says the version is missing like it should, but once published the englishEnglish version is NOT removed, and if I were to remove it manually in the web database (for testing purposes only), publishing Spanish only adds the englishEnglish version right back.
Removed version from master & Published:
Web still has english version:
Something interesting I just noticed: When I re-select the master database (within desktop), and navigating back to the product page using the content editor, the english version now exists within the master database.
If I repeat these steps:
Make sure english is selected, remove english version by clicking Remove (I can verify in the language dropdown for the item that there is ONLY the spanish version, and I get the yellow notification "Current item does not have a version in English: English"
click save
navigate to a different item
navigate back to the previous item - I can confirm that there is still only one Spanish version and no english version
click the publish -> publish item dropdown
select "Republish" and all of the rest of the checkmarks are checked (subitems, related items, English, French, Spanish) (I tried smart publish too with same result)
navigate to another item
navigate to the previous product item
The English version has returned in the master database and I can see the English version in the list of language dropdown versions. ???
Something is causing the english version to return.