When I use the "delete" link provided for a Field Collection field, it successfully deletes the field from my node. However, it also drops a custom node alias, if I have one set. In that case, the node alias is reverted to the pattern set in the Pathauto module. Here's the steps to reproduce:
1) Add a new content type, called Test Type.
2) Set the alias pattern for this content type to "test/[node:title]"
3) Add a Field Collection field to this content type, called field_foo
4) Add a Text field to field_foo, called field_foo_bar
5) Create a node of type Test Type, with "My Title" entered for title and "abcde" entered for field_foo_bar
6) Give your new node a custom alias ("my-alias"), instead of using the automatic alias established by the Pathauto module (test/my-title).
7) Go to the view page for this node and hit the delete link for "abcde" provided by the Field Collection module, then confirm the deletion.
8) Observe that the alias for this node is now "test/my-title" instead of "my-alias".
I am running Field Collection 7.x-1.x-dev and Pathauto 7.x-1.x-dev.
I reported this bug in the Field Collection issue queue and the module maintainer requested that I move the bug report over here:
Field-collection just issues a node_save() on the host entity. So if the alias goes away then, this is probably a bug of pathauto.
Comments
Comment #1
dave reidThis is a duplicate of #936222: Merge in pathauto_persist module functionality to prevent losing manual aliases with node_save() calls.
See also http://drupal.org/project/pathauto_persist and http://drupal.org/node/1167612.