[PaaS only]{class="badge informative" title="Applies to Adobe Commerce on Cloud projects (Adobe-managed PaaS infrastructure) and on-premises projects only."}

ACSD-65750: GraphQL “route” query returns products out of order in Page Builder Products content type

The ACSD-65750 patch fixes the issue where the GraphQL “route” query returns products out of order in Page Builder Products content type. This patch is available when the Quality Patches Tool (QPT) 1.1.66 is installed. The patch ID is ACSD-65750. Please note that this issue is scheduled to be fixed in Adobe Commerce 2.4.9.

Affected products and versions

The patch is created for Adobe Commerce version:

  • Adobe Commerce (all deployment methods) 2.4.7-p4

Compatible with Adobe Commerce versions:

  • Adobe Commerce (all deployment methods) 2.4.7-p1 - 2.4.8
NOTE
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the magento/quality-patches package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.

Issue

The GraphQL “route” query doesn’t return products in the correct sort order when using the Page Builder Products content type.

Steps to reproduce:

  1. Create a new category and some products in Catalog, and link the products to this category.

  2. Navigate to Catalog > Categories, edit the created category, and open the Products in Category tab.

  3. Set custom Position for each product in this category.

  4. Save the category and run reindex.

  5. Navigate to Content > Elements > Pages and click Add New Page.

  6. Expand the Content tab, then click Edit with Page Builder.

  7. Drag a Row element into the content area, then drag a Products element inside the row.

  8. Configure the Products element as follows:

    • Select Products By: Category
    • Category: Select the newly created category
    • Sort By: Position
  9. Switch to the Search Engine Optimization tab, and set the URL Key to test-widget.

  10. Save the page.

  11. Make the following GraphQL request:

query {
  route(url: "/test-widget") {
    relative_url
    redirect_code
    type
    ... on CmsPage {
      identifier
      content
      __typename
    }
    ... on ProductInterface {
      uid
      __typename
    }
    ... on CategoryInterface {
      uid
      __typename
    }
    __typename
  }
}

Expected results:

The system returns products in the order defined by their category position.

Actual results:

The system returns products in an order that does not match their category position in the GraphQL response.

Apply the patch

To apply individual patches, use the following links depending on your deployment method:

To learn more about Quality Patches Tool, refer to:

recommendation-more-help
c2d96e17-5179-455c-ad3a-e1697bb4e8c3