The default value for forceRedirect in development mode is false. In production mode it's true. Essentially if NODE_ENV !== 'development' then the forceRedirect value will be false (assuming you're using a Node stack). If you're using the CDN import, then we assume you're running in production. If that's the case for you, let me know, as that would probably be unintended.
The documentation can be improved in conveying this, in fact it doesn't look like it does at all. I'll work on getting that updated for future visitors.
Alex | 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 the Shopify Help Center or the Shopify Blog
I appreciate you looking into this. I would suggest to default forceRedirect to true, both in development and production, which I believe was used until v1.6.4. This makes is more seamless to work with embedded apps, and might prevent some issues for people who are migrating from older versions, like I just did.
I'm developing a Rails app, and loading AppBridge via webpacker.