Redirect to external link (opened in new tab) via Shopify App Bridge is blocked by browser

LiveChatInc
Shopify Partner
10 0 2

Hi!

We're developing app for Shopify and we're using Shopify App Bridge library to allow our iframe interact with Shopify store. Our iframe sometimes needs to perform redirect - open external link in new tab. We can perform reideracts inside Shopify admin panel via App Bridge without any problems but when we're trying to dispatch redirect action to new tab, then this action is blocked by browser. It's treated as pop-up window. We're using this method (as it's describe in Shopify documentation) - https://shopify.dev/tools/app-bridge/actions/navigation/redirect#redirect-to-an-absolute-url-outside.... What's interesting here using `window.open` works correctly.

It's known problem with this kind of redirect? In other situations (I mean - redirects inside app or inside Shopify admin panel) App Bridge works perfectly. Could you help us to find cause of this problem. If it's needed I'll try to provide more details about our code, but we did everything according to documentation.

Thanks for your help1

0 Likes