4.4.2: hotfix for infinite loops caused by _parent #4586
boutell
announced in
Release Notes
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In response to a report from a customer, we've released a hotfix for an issue introduced in version 4.4.0. Beginning with version 4.4.0, pieces have a
_parent
virtual property which complements_parentUrl
and provides additional information. This is a useful feature that makes it possible to render breadcrumb trails for pieces in search results. However, it also makes it possible for infinite loops to occur if a piece page is connected to a piece via a relationship field.In version
4.4.2
ofapostrophe
, this was resolved by introducing thepruneParent
method, which limits the properties of_parent
to a tidy subset suitable for displaying breadcrumb navigation and the like. The method can be extended if you wish to have access to more information about the piece page.Beta Was this translation helpful? Give feedback.
All reactions