AppNavigation opens app screens from JavaScript. Use it instead of browser navigation APIs such as window.location, history, or links.
Global name
API
Methods
navigateToCart
Opens the cart.navigateToProductDetail
Opens a product detail page. Thegid://shopify/Product/ prefix is optional.
navigateToProductQuickAdd
Opens the quick add flow for a product. Thegid://shopify/Product/ prefix is optional.
navigateToCollection
Opens a collection. Thegid://shopify/Collection/ prefix is optional.