As recommended for Remix embedded apps, we should link to the app’s pages using absolute paths relative to the app with the Link
component.
For example, to navigate to the page https://admin.shopify.com/store/{store}/apps/{app}/app/mypage
, the correct approach would be:
<Link url="/app/mypage">
Alternatively, to link to Shopify admin pages, you can use the shopify://
scheme. For example:
<Link url="shopify://admin/products">
These links work seamlessly when clicked normally. However, if you perform an action that bypasses the link’s handling—such as using middle-click or Ctrl+Click
to open the link in a new tab…the URL will be opened directly. This can lead to an invalid URL or cause the embedded app to open outside the embedded context.
Thanks