Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: Non-Embedded app opens in Admin after install, opens in new window on click in Admin

Solved

Non-Embedded app opens in Admin after install, opens in new window on click in Admin

CaveDiver
Shopify Partner
17 0 6

While testing  the installation of a non-embedded app, I found the following...

 

  • Immediately after installation, the app loads in a frame in the store admin (not what I want)
  • When the app name is clicked in the Apps page in the store admin, it opens in a new tab (this is what I want)

I don't understand why the different behavior.

Can someone tell me how to get the app to load in a new tab in both scenarios described above?

 

Thanks

Accepted Solution (1)

DivinityWebS
Shopify Partner
9 4 3

This is an accepted solution.

You must redirect on your app landing page after successfully install.

banned

View solution in original post

Replies 6 (6)

DivinityWebS
Shopify Partner
9 4 3

This is an accepted solution.

You must redirect on your app landing page after successfully install.

banned
CaveDiver
Shopify Partner
17 0 6

@DivinityWebS 

I am switching the app from embedded to non-embedded and did not think to change the redirect URL assuming that Shopify would display the page in a new tab/page as it does when clicked in the store admin.  It does not.

Thanks for pointing that out.

DivinityWebS
Shopify Partner
9 4 3

@CaveDiver  Always welcome.

banned
ChrisHorris
Shopify Partner
1 0 0

Hi @CaveDiver ,

 

I have the same issue as you and it's been driving me mad! Which redirect URL did you change?

If you could shed some light it would be much appreciated, I'm working to a tight deadline and can't figure it out 🙏

heyrohit
Shopify Partner
6 0 2

Hey,

So the general flow to the install logic is that whenever someone opens or installs your app, you check on your backend you already have the token for this app, if not, you store access-token for the store and redirect it on your dashboard UI as an authorised user.

Regards
Rohit Gupta.

aditodkar
Shopify Partner
16 0 3

In my case app is installed successfully but when I again click on open app from admin dashboard it does not redirect any idea why so?