Edit in GitHubLog an issue

urlResolver query

A merchant can reconfigure (rewrite) the URL to any product, category, or CMS page. When the rewrite goes into effect, any links that point to the previous URL are redirected to the new address.

The urlResolver query returns the canonical URL for a specified product, category, or CMS page. An external app can render a page by a URL without any prior knowledge about the landing page.

Syntax

{urlResolver(url: String!): EntityUrl}

Reference

The urlResolver reference provides detailed information about the types and fields defined in this query.

Example usage

Query information about the URL

The following query returns information about the URL containing joust-duffle-bag.html.

Request:

Copied to your clipboard
{
urlResolver(url: "joust-duffle-bag.html") {
entity_uid
relative_url
redirectCode
type
}
}

Response:

Copied to your clipboard
{
"data": {
"urlResolver": {
"entity_uid": "MQ==",
"relative_url": "joust-duffle-bag.html",
"redirectCode": 0,
"type": "PRODUCT"
}
}
}

products query

  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.