Shopify / shopify-app-bridge

https://shopify.dev/docs/api/app-bridge
82 stars 9 forks source link

How to fix force_legacy_domain redirection issue in Core PHP & MySQL Shopify App? #260

Closed rgopalakeans closed 5 months ago

rgopalakeans commented 7 months ago

Hi Team,

Actually, this app running with Core PHP & MySQL. Other than that, there is no "Node" or "React" kind of JavaScript libraries. So, there is no "App Bridge" kind of components. App completely build with HTML, CSS, Bootstrap Lib, PHP-MySQL, and jQuery.

Actually, our app has to load below URL,

https://admin.shopify.com/store/akeans-upload-hike/apps/akeans-upload-hike

Instead of this, it's automatically Re-directed to,

https://akeans-upload-hike.myshopify.com/admin/apps/akeans-upload-hike?force_legacy_domain=1

When we check "learn more", this is what we are getting, https://changelog.shopify.com/posts/shopify-admin-now-lives-at-admin-shopify-com

Please check this video for reference: https://www.loom.com/share/9437301b6bdb4417b503b40e567214ae?sid=c0cfdfcf-a52d-4cb2-91cf-f42a7bc87b3a

Please let me know, if anything needs from our side.

Thanks, Gopal R

darrynten commented 6 months ago

Migrate your app to App Bridge 3.x and the force_legacy_domain=1 opening in a new tab will stop once the system detects that the app is on an appropriate version of app bridge and can correctly handle the new unified admin domain

faridmovsumov commented 5 months ago

I have the same problem and I am using app-bridge version 3.7.x

"@shopify/app-bridge": "^3.7.9",
"@shopify/app-bridge-react": "^3.7.9",
henrytao-me commented 5 months ago

@darrynten @rgopalakeans May I have your app id?

henrytao-me commented 5 months ago

@rgopalakeans can you check your app again?

@faridmovsumov can I have your appId?