Closed g-hamilton closed 1 year ago
@g-hamilton did you end up solving this?
Note that this repo is no longer maintained and this issue will not be reviewed. Prefer the official JavaScript API library. If you still want to use Koa, see simple-koa-shopify-auth for a potential community solution.
Hi,
In the
afterAuth
method, I need to redirect the user to my embedded app, which is a sales channel.Using the method as per your guide/example:
This redirects me here:
https://test-shop.myshopify.com/admin/apps/41d33bca21f2a6a7f7ade535087632eb/?shop=test-shop.myshopify.com&host=aGFtc3RlcnMtY29mZmVlLm15c2hvcGlmeS5jb20vYWRtaV9
Which puts me on the "Apps" tab of my test shop, and which says "There's no page at this address".
I don't want to redirect to the "Apps" tab. I do want to redirect to my app in the "Sales Channels" tab. After app install, if I hover the mouse over my sales channel app in the shop admin, I note that the URL is:
https://test-shop.myshopify.com/admin/apps/app-2?channel=true
Note the
channel
query param in the URLSo I'm not sure if this is a bug or not, but if I simply append a
channel
param like so:The
channel
param is stripped away and I still end up on the "Apps" tab rather than "Sales Channels". How do I redirect my users to the correct place after installing my sales channel?Thanks