---
title: urlRedirects - Storefront API
description: >-
  Returns a paginated list of
  [`UrlRedirect`](/docs/api/storefront/2026-07/objects/UrlRedirect)

  objects configured for the shop. Each redirect maps an old path to a target
  location.
api_version: 2026-07
source_url:
  html: 'https://shopify.dev/docs/api/storefront/latest/queries/urlRedirects'
  md: 'https://shopify.dev/docs/api/storefront/latest/queries/urlRedirects.md'
api_name: storefront
api_type: graphql
type: query
---

# url​Redirects

query

Returns a paginated list of [`UrlRedirect`](https://shopify.dev/docs/api/storefront/2026-07/objects/UrlRedirect) objects configured for the shop. Each redirect maps an old path to a target location.

## UrlRedirectConnection arguments

[UrlRedirectConnection!](https://shopify.dev/docs/api/storefront/latest/connections/UrlRedirectConnection)

* after

  [String](https://shopify.dev/docs/api/storefront/latest/scalars/String)

  Returns the elements that come after the specified cursor.

* before

  [String](https://shopify.dev/docs/api/storefront/latest/scalars/String)

  Returns the elements that come before the specified cursor.

* first

  [Int](https://shopify.dev/docs/api/storefront/latest/scalars/Int)

  Returns up to the first `n` elements from the list.

* last

  [Int](https://shopify.dev/docs/api/storefront/latest/scalars/Int)

  Returns up to the last `n` elements from the list.

* query

  [String](https://shopify.dev/docs/api/storefront/latest/scalars/String)

  Apply one or multiple filters to the query. Refer to the detailed [search syntax](https://shopify.dev/api/usage/search-syntax) for more information about using filters.

  * created\_at
  * path
  * target

* reverse

  [Boolean](https://shopify.dev/docs/api/storefront/latest/scalars/Boolean)

  Default:false

  Reverse the order of the underlying list.

***

## Possible returns

* edges

  [\[Url​Redirect​Edge!\]!](https://shopify.dev/docs/api/storefront/latest/objects/UrlRedirectEdge)

  non-null

  A list of edges.

* nodes

  [\[Url​Redirect!\]!](https://shopify.dev/docs/api/storefront/latest/objects/UrlRedirect)

  non-null

  A list of the nodes contained in UrlRedirectEdge.

* page​Info

  [Page​Info!](https://shopify.dev/docs/api/storefront/latest/objects/PageInfo)

  non-null

  Information to aid in pagination.

***

## Examples

* ### urlRedirects reference
