Redirect

The Redirect action set allows you to modify the top-level browser URL. Use the Redirect action set to navigate within your app, or to redirect merchants elsewhere within the Shopify admin or on the web.

You can use the features action with plain JavaScript (Redirect action set) or React hook (useNavigate).