Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3925 from mage2pratik/patch-35
Browse files Browse the repository at this point in the history
MERGE IN 2.3.2: Fixed table structure with removing space and removed deprecated attribute.
  • Loading branch information
keharper authored Mar 26, 2019
2 parents eb95fc9 + 3611334 commit b0803b6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions guides/v2.3/graphql/reference/url-resolver.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down Expand Up @@ -55,20 +55,20 @@ The following query returns information about the URL containing `joust-duffle-b
{
urlResolver(url: "joust-duffle-bag.html") {
id
canonical_url
relative_url
type
}
}
```

**Response**

``` text
``` json
{
"data": {
"urlResolver": {
"id": 1,
"canonical_url": "catalog/product/view/id/1",
"relative_url": "catalog/product/view/id/1",
"type": "PRODUCT"
}
}
Expand Down Expand Up @@ -99,7 +99,7 @@ The following product query returns URL rewrite information about the Joust Duff

**Response**

```text
```json
{
"data": {
"products": {
Expand Down Expand Up @@ -158,4 +158,4 @@ The following product query returns URL rewrite information about the Joust Duff
}
}
}
```
```

0 comments on commit b0803b6

Please sign in to comment.