The function checkEntityAndSyncPath uses key() to get the entity type by the first route parameter. This works in most cases but not when used on group content cause this entity requires 2 parameters group id and group content id (ex: group/1/group_content/3). So when the you programmatically create group content the fieldable path field on the group entity gets updated with the path of the group content.

So I would suggest using the last route parameter to sync the path, this will work in all cases.

CommentFileSizeAuthor
#2 2930842-1.patch564 bytesgertvdb

Comments

gertvdb created an issue. See original summary.

gertvdb’s picture

StatusFileSize
new564 bytes

  • Spleshka committed 7fb789a on 8.x-1.x authored by gertvdb
    Issue #2930842 by gertvdb, Spleshka: checkEntityAndSyncPath and the...
spleshka’s picture

Status: Active » Fixed

Thank you very much for your contribution and patience @gertvdb! It's been a long journey, but the patch is finally there.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.