Problem/Motivation
When I add addtoany to a display in layout builder. Once I save then go back to edit the display in layout builder.
It causes a white screen and the following error. `The "node" entity cannot have a URI as it does not have an ID`.
Steps to reproduce
Step 1: Add addtoany to a display in layout builder.
Step 2: Save the display and navigate out of layout builder.
Step 3: Go back to your display and click manage layout.
Proposed resolution
Add a check when inside of layout builder.
Remaining tasks
Add a null check when inside of layout builder so you can still manage your layout in layout builder.
Comments
Comment #2
sstapleton commentedComment #3
sstapleton commentedComment #4
sstapleton commentedPlease see patch included.
Comment #7
micropat commentedFixed in the latest releases. Thanks @sstapleton!
Comment #9
leducdubleuet commentedI believe this fix was not implemented in release 2.0.5 and the exact same bug is back unfortunately when using the layout builder.
Here is a patch to bring back the fix adapted for current release.
Should we open a new issue or this one can be re-opened to be fixed again?
Thank you!
Comment #10
leducdubleuet commentedI understand what happened, the fix was removed by the patch committed on this other issue : https://www.drupal.org/project/addtoany/issues/3138220
Comment #11
oana.hulpoi commentedHi,
The issue is still present in 2.0.7 and I confirm that the patch by @leducdubleuet fixes the issue in layout builder.
Thank you!