diff --git a/guides/v2.3/graphql/reference/url-resolver.md b/guides/v2.3/graphql/reference/url-resolver.md index 9197346356b..5f62504e262 100644 --- a/guides/v2.3/graphql/reference/url-resolver.md +++ b/guides/v2.3/graphql/reference/url-resolver.md @@ -19,11 +19,11 @@ The `EntityUrl` output object contains the `id`, `canonical_url`, and `type` att Attribute | Data Type | Description --- | --- | --- - -`canonical_url` | String | The internal relative URL. If the specified `url` is a redirect, the query returns the redirected URL, not the original. `id` | Int | The ID assigned to the object associated with the specified `url`. This could be a product ID, category ID, or page ID. +`relative_url` | String | The internal relative URL. If the specified `url` is a redirect, the query returns the redirected URL, not the original. `type` | UrlRewriteEntityTypeEnum | The value of `UrlRewriteEntityTypeEnum` is one of PRODUCT, CATEGORY, or CMS_PAGE. `url` | String | The URL to resolve. Magento stores product and category URLs with the `.html` extension. CMS URLs do not contain the extension. +{:style="table-layout:auto;"} ### UrlRewrite object {#UrlRewrite} @@ -55,7 +55,7 @@ The following query returns information about the URL containing `joust-duffle-b { urlResolver(url: "joust-duffle-bag.html") { id - canonical_url + relative_url type } } @@ -63,12 +63,12 @@ The following query returns information about the URL containing `joust-duffle-b **Response** -``` text +``` json { "data": { "urlResolver": { "id": 1, - "canonical_url": "catalog/product/view/id/1", + "relative_url": "catalog/product/view/id/1", "type": "PRODUCT" } } @@ -99,7 +99,7 @@ The following product query returns URL rewrite information about the Joust Duff **Response** -```text +```json { "data": { "products": { @@ -158,4 +158,4 @@ The following product query returns URL rewrite information about the Joust Duff } } } -``` \ No newline at end of file +```