Questions and discussions about using the Shopify CLI and Shopify-built libraries.
I am currently updating a functioning app to App Bridge 2.0. The problem I'm experiencing is that during the auth flow, Shopify now redirects to https://store.myshopify.com/apps/(LONG TEXT STRING)/?shop=store.myshopify.com
This leads to a 404 error page on the store front. The problem is that it is redirecting to /apps instead of /admin/apps. Does anyone know of a solution for this? It worked fine in App Bridge 1.x.
Solved! Go to the solution
This is an accepted solution.
Others are facing issues with 2.0, try the https://shopifypartners.slack.com/ channel and look in #appdev and #app-bridge channels.
This is an accepted solution.
Solution here: https://github.com/Shopify/shopify-node-api/issues/171
the solution is not obvious, rather than a solution, but common phrases that we have read many times, does this mean we need to do like this?
ctx.redirect(`/?host=${host}`)
ctx.redirect(`/?shop=${shop}?host=${host}`)
ctx.redirect(`/?shop=${shop}&host=${host}`);
don't works, lead to 404 Page
After remaking _app.js with getting host from props, redirect now works properly