Skip to content

[5.x]: Translatable Link Field retains same entry across sites #15821

@liencard

Description

@liencard

What happened?

Description

When using a translatable Link field in a multisite setup, I expect that when I select an entry of the current site, it should default to the corresponding entry in the other sites (languages).

Currently, when I select an entry for a particular site, the same entry is retained across the other sites. This results in linking to the incorrect entry on those other sites.

Steps to reproduce

  1. Create a multisite setup.
  2. Add a translatable Link field to an entry.
  3. Select an entry in one site.
  4. Observe that the same entry is applied across all sites instead of selecting the corresponding entry for the other site.

Expected behavior

When selecting an entry in one site, the Link field should automatically map to the corresponding entry in the other site.

I understand that the Link field should be editable per site, but by default, I would prefer it to automatically select the corresponding entry for each site.

Actual behavior

The selected entry is retained for all sites, leading to incorrect linked entries across the multisite setup.

Craft CMS version

5.4

PHP version

8.2

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions