sebastian-lenz / craft-linkfield

Link field for Craft 3
MIT License
122 stars 66 forks source link

Non-translatable link fields not preserving entries across sites #182

Closed turnstylerj closed 2 years ago

turnstylerj commented 2 years ago

Description

When using link fields set to "Not translatable" on multi-site installs, entry links are not preserved as text/custom URLs are. This is not consistent with the behavior of native Entries fields, which are preserved if set to "Not translatable".

Steps to Reproduce

  1. Create a link field on a multi-site install with the translation method set to "Not translatable".
  2. Assign field to an entry type layout, populate the field on an entry with the "Entry" link type and custom text.
  3. Switch to a different site/language.

Expected Behavior

Both the entry field value and the custom text are preserved to the values they had on the primary language.

Actual Behavior

Custom text value is preserved, but entry value is blank.

Versions

Craft CMS: 3.7.28 Linkfield: 1.0.25 PHP: 7.4.21

turnstylerj commented 2 years ago

Actually, closing this. Sounds like I misunderstood Craft's need for entries to be propagated across sites in order to be accessible rather than falling back to the site they exist in.