- Issue created by @britt.vanderlinden
The EntityUrl DataProducer in the GraphQL module assumes that the entity passed to it is always valid and has an ID. However, in some cases (like when using the same page preview on newly created nodes), this assumption can lead to an exception.
This patch adds a safeguard to the resolve() method of EntityUrl to return null if the passed entity does not have an ID.
Active
4.10
Code