Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Steps to reproduce:
- Create node that contains a link field
- Add a non-node string reference to the url field. e.g. 'entity:file/136'
- Save node
- Reopen the node edit form. Url field value is displayed as 'my_file_path.pdf (136)'
- Save node
- Reopen the node edit form. Url field value is displayed as 'Title of node 136 (136)'
The result is that a non-node entity reference is converted into a node reference.
Proposed resolution
Link field values that has values in brackets () should not be assumed to be nodes.
Comment | File | Size | Author |
---|---|---|---|
Screen Shot 2017-05-04 at 14.43.34.png | 26.6 KB | Onnia |
Comments
Comment #2
Onnia CreditAttribution: Onnia commentedComment #3
Onnia CreditAttribution: Onnia commentedComment #4
BerdirI think this is/was a duplicate and is now fixed with #2804391: Resaving menu links that points to a non-node entity changes the type to node and breaks the link, please re-open if that's not the case.