Content Translation "Change source language" breaks inside Entity Browser modal

Created on 7 October 2025, about 1 month ago

Problem/Motivation

When editing a translatable entity (for example, a Media Document) via an Entity Browser modal, clicking the “Change” button in the Source language selector causes incorrect behavior.
Instead of reloading the form or updating the source language, the modal closes, a new browser tab opens, and the screen displays a raw JSON response.

Steps to reproduce

  1. Enable Content Translation and Entity Browser modules.
  2. Enable translation for a Media type (e.g., Document).
  3. Add a Media reference field to a content type and configure it to use Entity Browser as the selection widget.
  4. Create at least one Media Document entity and add translations for it in two or more languages.
  5. Create a node of that content type.
  6. Open the Entity Browser modal and select “Edit” on a translatable media item.
  7. In the opened edit form, change the Source language and click Change.

Expected results

The form reloads within the modal and updates to the selected source language.

Actual results

The modal closes.
A new browser tab opens showing raw JSON, e.g.:

[
  {
    "command": "closeDialog",
    "selector": "#media",
    "persist": false
  },
  {
    "command": "entity_browser_value_updated",
    "details_id": "edit-field-media"
  }
]

No change occurs — the source language and field values remain unchanged.

🐛 Bug report
Status

Active

Version

2.13

Component

Widget plugins

Created by

🇺🇦Ukraine trolya

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024