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.

CommentFileSizeAuthor
Screen Shot 2017-05-04 at 14.43.34.png26.6 KBOnnia
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Onnia created an issue. See original summary.

Onnia’s picture

Issue summary: View changes
Berdir’s picture

Status: Active » Closed (duplicate)

I 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.