---
title: "UrlRedirect"
description: "重定向信息"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/online-store/objects/url-redirect'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/online-store/objects/url-redirect.md'
---
# UrlRedirect

重定向信息

- **API Version:** v20270301
- **API Type:** Storefront
- **API Protocol:** GraphQL
- **Operation Type:** Object

## Type Signature

`UrlRedirect`

## Fields

* `id`

  [ID!](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/id.md)

  重定向id

* `path`

  [String](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/string.md)

  重定向的源路径

* `target`

  [String](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/string.md)

  重定向的目标路径

## Schema Definition

```graphql
type UrlRedirect { 
	id: ID!
	path: String
	target: String 
}
```

## Field from

* [UrlRedirectEdge](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/online-store/objects/url-redirect-edge.md).node

  节点

* [Query](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/online-store/queries/proxy-node-redirect.md).proxyNodeRedirect

  当前接口即将下线，新增接入将无法直接使用。如需申请使用权限，请通过工单系统联系平台。

## Error Handling

关于更多通用错误码说明，参考：[状态码和错误码](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/storefront-api/overview.md#status-and-error-codes)。

