Steps to reproduce:
1. Create new entity (that has Pathauto and Fieldable Path configured)
2. You should see correct Fieldable Path ('/content/test')
3. Re-save entity without touching any fields.
Current behaviour: you will see new value in Fieldable Path ('/content/test-0').
I'm assuming it's related to workaround for Pathauto in FieldablePath::preSave. I simply removed it and it worked.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2874744-2-remove-custom-pathauto-handling.patch | 1.97 KB | kalabro |
Comments
Comment #2
kalabroComment #3
kalabroComment #5
spleshkaHi @kalabro. Unfortunately, we can't just remove this section, because it prevents entity from having entity save during ongoing entity save operation, which potentially might lead to unpredictable issues.
I debugged the issue and turns out the fix was quite simple: for existing entities we do need to pass a real entity id to make pathauto generate correct aliases.
Btw, thanks for the report.