Thanks for the info, @AndreyZienko , this is super useful.
I tried to do what you described in one of my test apps, and it worked. Here is what I did:
I created a couple of Bulk Action Link extensions - One with Link target URL https://{MY_APP_SERVER}/page1, and the other with Link target URL https://{MY_APP_SERVER}/page2.
I went to the Product index page on my dev store, and tested these links.
When I clicked the first link,
- My server loaded https://{MY_APP_SERVER}/page1?ids=…
- The App-Bridge library (on the frontend) recognized that the page isn’t embedded
- I was automatically redirected to https://{SHOPIFY_HOST}/{MY_APP_HANDLE}/page1?ids=…
(everything works similarly with page2, or any other pathname)
Are you seeing something different with your app? If so, where do things get stuck?
(Note: The automatic App-Bridge redirect happens because my app initializes App-Bridge with forceRedirect set to true)