I have my deep link setup like this:
https://${shop}/admin/themes/current/editor?template=${template}&addAppBlockId=${extensionId}%2F${widget.widgetId}&target=${target}
The target to this url is newAppSection in product page.
It successfully directs me to the product page buts adds wrong app to the section.
But the weird part is that it sometime gets it right. (about 1 out of 20 times)
When it fails to put correct app to the section, it just adds the first app that’s on the list which I guess that is its fallback behavior.
My guess is that the link is unable to find correct app using the addAppBlockId.
The extensionId variable is a value straight out from the .env file that shopify cli generated.
Please help!
Thank you
Additional info I found out after posting:
I have several development stores but this only happens to my own dedicated test store.
Deep linking from other stores works fine.
Please help to clarify which part of the store config is triggering this issue.