How to return to admin product page from embedded app?

Topic summary

A developer is building an embedded Shopify app with an extension on the Admin Product Page. They want to redirect users back to the specific admin product page that opened the app.

The Problem:

  • Direct redirect to https://admin.shopify.com/store/mystore/products/8545732395300 fails
  • Shopify displays an error: “Refused to display ‘https://admin.shopify.com/’ in a frame because it set ‘X-Frame-Options’ to ‘sameorigin’”

Proposed Solution:
Use a target URL format: YOUR_HOST_URL/products/8545732395300

  • YOUR_HOST_URL refers to the app’s host URL
  • Reference provided: Shopify’s admin links documentation at shopify.dev/docs/apps/admin/admin-links/getting-started

Status: The solution was offered multiple times by the same responder, suggesting it addresses the X-Frame-Options restriction by routing through the app’s host rather than directly to Shopify’s admin domain.

Summarized with AI on November 12. AI used: claude-sonnet-4-5-20250929.

Hello,

I am developing an Embeded App for Shopify, and I have created an Extension that is on the Admin Product Page on the top menu that opens my App page.

On that page, I want to return to the admin product page that openned the App Page, so I tried to redirect directly to: “https://admin.shopify.com/store/mystore/products/8545732395300”.

The problem is that shopify shows the error: Refused to display ‘https://admin.shopify.com/’ in a frame because it set ‘X-Frame-Options’ to ‘deny’.

Hello,

Use the target URL like this:- YOUR_HOST_URL/products/8545732395300

https://shopify.dev/docs/apps/admin/admin-links/getting-started

Md Shafiul Islam | Brain Station 23

  • Was my reply helpful? Click Like to let me know!
  • Was your question answered? Mark it as an Accepted Solution

Hello,

Use target URL like this: YOUR_HOST_URL/products/8545732395300

YOUR_HOST_URL → Your app host URL
https://shopify.dev/docs/apps/admin/admin-links/getting-started

Md Shafiul Islam | Brain Station 23

  • Was my reply helpful? Click Like to let me know!
  • Was your question answered? Mark it as an Accepted Solution

Hello,

Use Target URL like this: YOUR_HOST_URL/products/8545732395300

YOUR_HOST_URL: Your app host URL

https://shopify.dev/docs/apps/admin/admin-links/getting-started

Md Shafiul Islam | Brain Station 23

  • Was my reply helpful? Click Like to let me know!
  • Was your question answered? Mark it as an Accepted Solution

Hello,

Use Target URL like this: YOUR_HOST_URL/products/8545732395300

YOUR_HOST_URL: Your app host URL

https://shopify.dev/docs/apps/admin/admin-links/getting-started

Md Shafiul Islam | Brain Station 23

  • Was my reply helpful? Click Like to let me know!
  • Was your question answered? Mark it as an Accepted Solution