Skip to main content

storefrontRedirect

Queries the Storefront API to see if there is any redirect created for the current route and performs it. Otherwise, it returns the response passed in the parameters. Useful for conditionally redirecting after a 404 response.

Anchor to options
options
required

Promise<Response>

Was this page helpful?