Problem with link field (internal and external)

Created on 27 October 2023, about 1 year ago

Problem/Motivation

Link can be both internal (with autocomplete) and external.
If we try to edit field that had internal url to set external url, the link is automatically deleted on submit because the values does not match.

Steps to reproduce

Create a content with link field (internal and external)
Create a node with internal url (via autocomplete)
Edit this node and set external url, the field is empty on submit

Proposed resolution

I wrote a patch to fix it.
When the value does not match with the real data attributes, instead of deleting it, we keep the real value.
I fixed it for classic submit and ajax ones.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇫🇷France Quentin Massez

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

Comments & Activities

Production build 0.71.5 2024