How to return to admin product page from embedded app?

RfcSilva
Shopify Partner
17 1 2

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'.

Replies 4 (4)

BrainStation23
Shopify Partner
305 50 49

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

Brain Station 23 PLC
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Email: js.team@brainstation-23.com

BrainStation23
Shopify Partner
305 50 49

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

Brain Station 23 PLC
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Email: js.team@brainstation-23.com

BrainStation23
Shopify Partner
305 50 49

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

Brain Station 23 PLC
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Email: js.team@brainstation-23.com

BrainStation23
Shopify Partner
305 50 49

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

Brain Station 23 PLC
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Email: js.team@brainstation-23.com