After installing the app, my test app is visible inside /admin/apps page.
Hover on the app shows url like:
And I want user to go to my website app, unlike embedded-app.
1. How to handle this "/redirect" url inside app, coming from the /admin/apps page ?
2. Being non-embedded app, how to take user directly to my website app ?
If you want to open your custom app outside the shopify admin panel. You just need to follow below steps :
step 1 : Login your partner panel and click on "App" section.
step 2 : Click on your "custom app" and then click on "Extensions" (below the app name).
step 3 : After that under the "Embedded App" click on "manage embedded app" button.
step 4 : Now click on "Enable" button under the "Embed your app".
Feel free to reply if you have any more concern.
Thanks for your inputs.
1. What you have told is done already.
2. What I am asking is - user installed my app and in his /admin/apps page, my app is enlisted. And Now I want to handle action for click event on the app name
And I have resolved it.
How: click will go through /auth, /auth/callback etc calls ( react+next app lifecycle) and at last it will go to route "/", this is where you can give redirect to app url( usually your non-embedded app hosted url).
I was looking for a standard way, but not found through documentation