You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: src/guides/v2.3/graphql/queries/url-resolver.md
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@ The following query returns information about the URL containing `joust-duffle-b
26
26
urlResolver(url: "joust-duffle-bag.html") {
27
27
id
28
28
relative_url
29
+
redirectCode
29
30
type
30
31
}
31
32
}
@@ -39,6 +40,7 @@ The following query returns information about the URL containing `joust-duffle-b
39
40
"urlResolver": {
40
41
"id": 1,
41
42
"relative_url": "catalog/product/view/id/1",
43
+
"redirectCode": 0,
42
44
"type": "PRODUCT"
43
45
}
44
46
}
@@ -59,11 +61,11 @@ The `EntityUrl` output object contains the `id`, `relative_url`, and `type` attr
59
61
60
62
Attribute | Data Type | Description
61
63
--- | --- | ---
62
-
`canonical_url` | String | Deprecated. Use `relative_url` instead.
63
-
`id` | Int | The ID assigned to the object associated with the specified `url`. This could be a product ID, category ID, or page ID.
64
-
`relative_url` | String | The internal relative URL. If the specified `url` is a redirect, the query returns the redirected URL, not the original.
65
-
`type` | UrlRewriteEntityTypeEnum | The value of `UrlRewriteEntityTypeEnum` is one of PRODUCT, CATEGORY, or CMS_PAGE.
66
-
`url` | String | The URL to resolve. Magento stores product and category URLs with the `.html` extension. CMS URLs do not contain the extension.
64
+
`canonical_url` | String | Deprecated. Use `relative_url` instead
65
+
`id` | Int | The ID assigned to the object associated with the specified `url`. This could be a product ID, category ID, or page ID
66
+
`redirectCode` | Int | Contains 0 when there is no redirect error. A value of 301 indicates the URL of the requested resource has been changed permanently, while a value of 302 indicates a temporary redirect
67
+
`relative_url` | String | The internal relative URL. If the specified `url` is a redirect, the query returns the redirected URL, not the original
68
+
`type` | UrlRewriteEntityTypeEnum | The value of `UrlRewriteEntityTypeEnum` is one of PRODUCT, CATEGORY, or CMS_PAGE
0 commit comments