Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Redirect to app page is replacing the page content completlly and not the iframe content only

Redirect to app page is replacing the page content completlly and not the iframe content only

Dror-Dromi
Shopify Partner
3 0 0

This is an old Shopify App using CURL style calls.

App installation flow

  • Authenticate
  • approving payment method
  • Authenticate again (online) to get the associated user.
  • show app setting page

 

  1. GET / - redirect to authentication
  2. GET /auth-callback - redirect payment activation
  3. REDIRECT payment panel
  4. GET /payment-callback - redirectl user auth
  5. GET /user-auth-callback - redirect to root
  6. GET / 
  7. REDIRECT to App setting url

Screen Shot 2022-05-10 at 11.59.17.png

The last redirect couching the problem, The page url is replaced to the app setting page and it appears like the page is stand alone page and not part of Shopify admin page.

Notice that this is happening on installation only. If the application is already installed than everything works fine:

  1. GET / - redirect to user auth
  2. GET /user-auth-callback - redirect to root
  3. GET / 
  4. REDIRECT to App setting urlshop1.jpg

 

Replies 0 (0)