Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

url_path is not working as documented  #713

@TomashKhamlai

Description

@TomashKhamlai

Preconditions (*)

  1. Simple Product is created and assigned to the category "sale"

Steps to reproduce (*)

  1. Perform query
{
  products(
    search: "simple"
    filter: {
      sku: {
        eq: "simple"
      }
    }
  ) {
    items {
      type_id
      sku
      name
      url_key
      url_path
      canonical_url
      url_rewrites {
        url
        url
      }
    }
    total_count
  }
}

Expected result (*)

  1. Works according to documentation
Attribute Data Type Description
url_path String The part of the URL that precedes the url_key.
This attribute is defined in the CatalogUrlRewrite module

Actual result (*)

  1. Response:
{
  "data": {
    "products": {
      "items": [
        {
          "type_id": "simple",
          "sku": "simple",
          "name": "simple",
          "url_key": "simple",
          "url_path": null,
          "canonical_url": "http://graph-sd.io/simple.html",
          "url_rewrites": [
            {
              "url": "simple.html"
            },
            {
              "url": "sale/simple.html"
            }
          ]
        }
      ],
      "total_count": 1
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions