This repository was archived by the owner on Nov 19, 2024. It is now read-only.
File tree 1 file changed +4
-4
lines changed
guides/v2.3/graphql/reference
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 14
14
Attribute | Data Type | Description
15
15
--- | --- | ---
16
16
` url ` | String | The URL to resolve. Magento stores product and category URLs with the ` .html ` extension. CMS URLs do not contain the extension.
17
- ` EntityUrl ` | ` EntityUrl ` | An output object containing the ` id ` , ` relative_url ` , and ` type ` attributes.
17
+ ` EntityUrl ` | ` EntityUrl ` | An output object containing the ` id ` , ` canonical_url ` , and ` type ` attributes.
18
18
` id ` | Int | The ID assigned to the object associated with the specified ` url ` . This could be a product ID, category ID, or page ID.
19
- ` relative_url ` | String | The internal relative URL. If the specified ` url ` is a redirect, the query returns the redirected URL, not the original.
19
+ ` canonical_url ` | String | The internal relative URL. If the specified ` url ` is a redirect, the query returns the redirected URL, not the original.
20
20
` type ` | UrlRewriteEntityTypeEnum | The value of ` UrlRewriteEntityTypeEnum ` is one of PRODUCT, CATEGORY, or CMS_PAGE.
21
21
22
22
## Example usage
@@ -27,7 +27,7 @@ Attribute | Data Type | Description
27
27
{
28
28
urlResolver(url:"joust-duffle-bag.html") {
29
29
id
30
- relative_url
30
+ canonical_url
31
31
type
32
32
}
33
33
}
@@ -40,7 +40,7 @@ Attribute | Data Type | Description
40
40
"data": {
41
41
"urlResolver": {
42
42
"id": 1,
43
- "relative_url ": "catalog/product/view/id/1",
43
+ "canonical_url ": "catalog/product/view/id/1",
44
44
"type": "PRODUCT"
45
45
}
46
46
}
You can’t perform that action at this time.
0 commit comments