AppBridge suddenly is redirecting to admin.shopify

Angel64
Shopify Partner
1 0 0

My app was working correctly for months, but now suddenly my app bridge is not redirecting to {shop-domain}.myshopify.com in some pcs (is redirecting to admin.shopify) and that causes trouble in some navigations in the app

Reply 1 (1)

Liam
Shopify Staff
2731 302 783

Hi Angel64,

 

It sounds like this issue could be due to Shopify's consolidation of its admin domains. It's possible that stores loading your app might use the old myshopify.com domain, or the new admin.shopify.com domain, and this impacts the value returned in the host parameter.

 

To resolve this issue, always the host that's provided by Shopify when initializing App Bridge. If you initialize App Bridge with an incorrect host, then your app won't work as expected.

 

What version of App BrisIf you are using? You may need to update your App Bridge version which should handle these URL changes.

 

Hope this helps,

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog