Skip to content

4.2.0

Latest

Choose a tag to compare

@engram-design engram-design released this 28 Nov 13:12

Changed

  • Changed node.active and node.hasActiveChild() so a parent, such as a passive or Dynamic node, is no longer active or open when a child only matches because the current page is under that child’s URL. Only a current child now marks its parent. The child itself stays active.
  • Changed new nodes linked to an element that’s disabled, or disabled on some sites, to start disabled on those sites and become enabled when the element is enabled, matching nodes whose element is disabled after it’s linked. Previously they started enabled. Existing nodes keep their current state, and pending or expired entries aren’t affected.
  • Changed the node editor to refuse a new parent for a node while another editor has unsaved changes beneath it in the menu builder, as moving it in the builder already does. Previously the node moved and took the other editor’s unsaved nodes with it.
  • Changed node queries using withNodeHierarchy(false) to stop loading children to resolve active states. A node whose children aren’t in the results, such as with .level(1), now has hasActiveChild() return false and is only active when its own URL matches. Remove withNodeHierarchy(false) or eager-load children to keep the previous result.

Fixed

  • Fixed the menu builder failing to load, and Products Dynamic nodes failing to open, on Commerce 5.6 and earlier.
  • Fixed lowered node or depth limits preventing editors from editing, reordering or deleting existing menu nodes.
  • Fixed deleting a linked entry for one site leaving that site’s menu nodes enabled without a URL.
  • Fixed Navigation fields accepting and returning values other than a menu handle.
  • Fixed one(), nth() and uid() node queries, and the navigationNode GraphQL query, returning nodes without their children.
  • Fixed node queries using withNodeHierarchy(false), eager-loaded children or no menu running an extra database query for each node when resolving active states.
  • Fixed the menuHandle, menuName, navHandle and navName GraphQL node fields, and node.menu, running a database query for each node.
  • Fixed menu nodes not being current when the page URL has a query string after a trailing slash, such as /about/?utm_source=x, and the home page never being current or active with any query string.
  • Fixed Custom node URLs with percent-encoded characters, such as /pages/%C3%BCber copied from the address bar, never matching the current page.
  • Fixed a Custom node for the site’s base URL being active on every page when the base URL has uppercase letters.
  • Fixed a Site node for a site at the root URL being active on every page of a sibling site in a subfolder, such as /fr/, and getActiveNode() returning it there instead of that site’s node.