Skip to content

Content Delivery API - Multinode Treepicker always returns the items in the default language #14758

@lauraneto

Description

@lauraneto

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

12.1.1

Bug summary

When requesting an item by path and there is a multinode treepicker property, the items in that property are always returned in the default language, instead of matching the language of the main item.

You can see the issue in a sample demo I built (the requests are done client side, so you can see them by inspecting them in dev tools).
I have two variants of the content, one in pt-PT (https://lauraneto.github.io/Umbraco.Headless.Blazor/pt/blog/blog-1) and another one in en-US (https://lauraneto.github.io/Umbraco.Headless.Blazor/blog/blog-item-1) which are referencing another item (Blog Item 3), which also exists in both languages, but the en-US version is always returned (both the "main" properties like name and the actual properties (expanded)).

Specifics

No response

Steps to reproduce

  1. Create a node in multiple languages, where the document type contains a Multinode Treepicker property.
  2. Create a second node in the same languages as the previous step.
  3. Open the first node and add the second node to the Multinode Treepicker property.
  4. Request the first node using the Content Delivery API path endpoint (expanding the multinode treepicker property) in the various languages and check that the items will always be retrieved in the default language, and not the language of the main item, even though it exists.

Expected result / actual result

The content of the referenced item(s) would be returned in the language of the main item.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions