-
Notifications
You must be signed in to change notification settings - Fork 468
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(variantWebApi) dotAsset localization issue for non default language
#29851 (#30587) ### Proposed Changes * Updated the `isFileFallback` method to account for content in non-default languages. - Added a conditional check for `DOTASSET` types and ensured fallback behavior respects language settings via `LanguageAPI`. * Updated the `inodePath` method in `ShortyServlet` to implement language fallback logic for contentlets with `ImageField` or `FileField` when the associated content version is missing in a specified language. ### Checklist - [x] Tests - [x] Translations - [x] Security Implications Contemplated ### Additional Info **Context**: This fix resolves an issue where content with image fields in a secondary language did not display the associated image as expected. The modification ensures that dotAsset images can fall back to the default language if they are not available in the specified language, preventing unexpected behaviors when creating or editing multilingual pages. ### Screenshots #### Current behavior (issue) https://github.com/user-attachments/assets/81c0ae60-a5d5-4046-a77b-87dcd1195cf3 #### Behavior after the fix https://github.com/user-attachments/assets/f9f44e12-9e1c-484c-b496-32efbd3c9c01
- Loading branch information
1 parent
1f1e05d
commit 824106f
Showing
5 changed files
with
176 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters