App Embed Deep Linking Redirecting to Draft Theme After Theme Change

We noticed an issue with deep linking for app embeds.

We’re using:

https://<shop>.myshopify.com/admin/themes/current/editor?context=apps&template=${template}&activateAppId={api_key}/{handle}

It works fine on install, opening the live theme editor.

But after switching to a completely different theme, this same link opens the draft theme editor, not the live one — even though themes/current is used.

Anyone else seeing this?

Thanks!

Hey @Sijann :waving_hand: - I haven’t seen this reported before on our end here, but it certainly seems like unexpected behaviour for sure. I just want to confirm, would these replication steps be correct?

  • Install app on Theme A (live theme)
  • Test deep link → opens live editor ✓
  • Switch to Theme B as live theme
  • Test same deep link → opens draft editor ✗

If you’re able to replicate the issue on a dev shop, and are open to sharing that myshopify.com URL with me, I can definitely take a closer look at this for you.

Hope to hear from you soon, we’ll get this looked into!