Create redirect URL

The Create redirect URL action creates a redirect URL that transfers traffic from one web page to another.

On this page

Fields

The Create redirect URL action contains the following fields.

Fields used in the Create redirect URL action.
FieldDescription
PathRequired. The URL that customers are redirected away from. The URL used in this field must represent an existing URL in your store.
TargetRequired. The URL that customers are redirected to. The URL used in this field can be an existing URL in your store or an external destination.
Overwrite existing redirectWhen checked, a redirect is created even if there is already a redirect for the original URL that customers are being redirected away from.

Triggers

The Create redirect URL action can be used in any workflow.

Example

Example of a workflow that redirects visitors from a deleted product to another page

In this example workflow, a URL redirect is created when a product is deleted. The redirect sends visitors from the deleted product page to a page with more information on discontinued products.

This workflow uses the deleted product's title property to generate the URL that customers are redirected away from. Note that if the product had a customized handle or URL prior to being deleted, this workflow might not work.

API details

To learn more, review the urlRedirectCreate mutation.

Ready to start selling with Shopify?Try it free