Issue Bug Closed

#104302Error "Cannot read properties of undefined (reading 'contentWindow')" when changing language after "Open in new window"

Daniel Hettler 07/03/24, 13:38 updated 12/02/25, 14:33

Description

Hello,

the language switch is broken when the editors opens a record in a new browser tab. When trying to change the language the JS error is thrown:

ContentContainer.js:13 Uncaught TypeError: Cannot read properties of undefined (reading 'contentWindow')
    at a.get (ContentContainer.js:13:477)
    at Object.handleFormChildNavigateAction (GlobalEventHandler.js:13:1703)
    at Object.handleChangeEvent (GlobalEventHandler.js:13:777)
    at HTMLDocument.<anonymous> (RegularEvent.js:13:364)

I doesn’t matter if you open it by pressing CMD+Click on the edit record link or clicking “Open in new window” in the detail view:

clipboard-202407031528-xu5xi.png

The view is not navigating to the record translation of the selected language:
clipboard-202407031528-v8ek7.png

Goal:
As an editor I want to navigate to a translation of the current record.

Best regards

Reviews 2