Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
}
}
}
```
```