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

Description
Preconditions (*)
- Simple Product is created and assigned to the category "sale"
Steps to reproduce (*)
- 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 (*)
- 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 (*)
- 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
}
}
}