Closed matija2209 closed 1 year ago
app.hostOrigin always returns https://admin.shopify.com
const app = useAppBridge();
Instead of https://admin.shopify.com receive https://store-name.myshopify.com
app.hostOrigin always returns https://admin.shopify.com/
This is not a bug, it is the expected behaviour whenever a store is served from admin.shopify.com (aka unified admin). There's more info here.
admin.shopify.com
Describe the bug
app.hostOrigin always returns https://admin.shopify.com
To Reproduce
const app = useAppBridge();
Expected behaviour
Instead of https://admin.shopify.com receive https://store-name.myshopify.com