---
title: UrlRedirect - Storefront API
description: A redirect on the online store.
api_version: 2026-04
source_url:
  html: https://shopify.dev/docs/api/storefront/latest/objects/urlredirect
  md: https://shopify.dev/docs/api/storefront/latest/objects/urlredirect.md
---

# Url​Redirect

object

Requires `unauthenticated_read_content` access scope.

A redirect on the online store.

## Fields

* id

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

  non-null

  The ID of the URL redirect.

* path

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

  non-null

  The old path to be redirected from. When the user visits this path, they'll be redirected to the target location.

* target

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

  non-null

  The target location where the user will be redirected to.

***

## Map

### Fields and connections with this object

* [UrlRedirectConnection.nodes](https://shopify.dev/docs/api/storefront/latest/connections/UrlRedirectConnection#returns-nodes)
* [UrlRedirectEdge.node](https://shopify.dev/docs/api/storefront/latest/objects/UrlRedirectEdge#field-UrlRedirectEdge.fields.node)

***

## Queries

* [url​Redirects](https://shopify.dev/docs/api/storefront/latest/queries/urlRedirects)

  query

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

  * first

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

    ### Arguments

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

  * after

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

    Returns the elements that come after the specified cursor.

  * last

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

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

  * before

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

    Returns the elements that come before the specified cursor.

  * reverse

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

    Default:false

    Reverse the order of the underlying 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

  ***

***

## UrlRedirect Queries

### Queried by

* [url​Redirects](https://shopify.dev/docs/api/storefront/latest/queries/urlRedirects)

***

## Interfaces

* [Node](https://shopify.dev/docs/api/storefront/latest/interfaces/Node)

  interface

***

## UrlRedirect Implements

### Implements

* [Node](https://shopify.dev/docs/api/storefront/latest/interfaces/Node)