I have an issue with internal links, as If edit the link and remove the URL and save my changes on layout builder, it will show an error:
Drupal\Core\Entity\EntityStorageException: The "" entity type does not exist. in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 846 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
So, I checked the issue and found that the link data attributes still exist but empty:
data-entity-substitution="" data-entity-type="" data-entity-uuid="" href=""
Note: I know that the user should use the Unlink button, but this case may happen on production by mistake if the user uses it in the wrong way.
1- Edit the layout of any content that uses layout builder.
2- Add custom block.
3- Add internal link.
4- Edit the same link and remove the URL.
5- Save the custom block.
6- Save the layout builder.
I suggest adding a custom validation on the link dialog form to validate the URL before saving the link.
Patch
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.