Issue Bug New

#111721Copying a root page with translations removes the translations when no site configuration exists for the copy yet

Martin Clewing 12/04/26, 10:47 updated 12/04/26, 10:47

Description

Since the fix for #103828 (prevent orphaned records on copy/paste), translations of a page are no longer copied if the target has no site configuration with the matching languages. This is intended for copying into an existing site with a different language setup (#102345).

When a root page is copied, however, the copy has no site configuration yet by definition. Its page translations (pages with l10n_parent) and the translated content elements are therefore not copied. They are neither hidden nor orphaned, they are just gone. After creating the site configuration, the languages have to be rebuilt manually.

Steps to reproduce:

Create a site with a root page and at least one additional language, including a translated page and a translated content element.
Copy the root page and paste it on the root level (or wherever the copy is meant to become a new root page).
Check the copy in the page tree and the list module.

Expected: Translations are copied together with the root page (as before #103828), or the user is clearly informed that they were skipped.
Actual: Translations of the page and its content elements are missing from the copy.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Fix this issue

Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch

Commit message
[BUGFIX] Copying a root page with translations removes the translations when no site configuration exists for the copy yet

Resolves: #111721
Releases: main