Skip to main content

Navigation

The Navigation API allows you navigate within and outside of your app using the HTML anchor element. It also allows you to modify the top-level browser URL with or without navigating. It does this through the History API and the Navigation API.

Was this section helpful?

Anchor

<a href="shopify://admin/products" target="_top">Products page</a>

Navigating and updating the browser URL

Anchor to example-navigating-to-routes-within-your-appNavigating to routes within your app

Was this section helpful?

App navigation with relative path

<a href="/settings">Settings</a>

Navigating to external URL in same window

Navigating to external URL in new window

Was this section helpful?

External URL in same window

<a href="https://example.com">Settings</a>

Anchor to example-navigating-to-pages-in-the-shopify-adminNavigating to pages in the Shopify admin

Navigating to /products page

Navigating to /products page with specific resource

Navigating to /customers page

Navigating to /orders page

Was this section helpful?

/products page

<a href="shopify://admin/products" target="_top">Products page</a>

Was this section helpful?

History API

history.pushState(null, '', '/settings');