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!

Hey @Alan_G :waving_hand: – yes, the steps are exactly right.

Additionally:

  • When the initially added theme (Theme A) is deleted, the deep link throws an error like “The theme you’re looking for couldn’t be found.”

We’ve seen this issue across multiple dev stores, under different partner accounts, and with different apps, so it doesn’t seem tied to any specific store or setup.

Here’s a screen recording: Watch Screen Recording 2025-07-14 at 14.44.10 | Streamable
Test store: not-a-serious-shop.myshopify.com

Thanks for looking into it!

Hey @Sijann - thanks for confirming! I’ll do some digging into this internally and loop back with you here once I have next steps or can confirm a fix.

Hey @Sijann - I was able to touch base with our product team on this, and it does appear to be a possible bug on our end. I’ll keep my eyes on this and update you as soon as I have next steps/can confirm a fix.

Hey @Sijann :waving_hand: - reaching out to share an update here! A fix has been pushed that adresses the issue and should resolve the deep link redirect. Can you let me know if you’re still seeing the issue on your end? If so, I’m happy to keep looking into this, just let me know!

1 Like

Hey @Alan_G :waving_hand: - thanks for the update!

I tested the fix, but the issue still seems to be happening on our end. The deep link continues to open the draft theme instead of the live theme after a theme change.

Thanks @Sijann, appreciate you testing that, sorry to hear the error is still persisting. I’ll get back in touch with our product team for you and investigate further. I’ll be back in touch as soon as I have more info to share. :slight_smile:

Just following up as well here @Sijann to clarify on my end, is the issue still presenting the same way it was in your original screenshare? Just want to make sure it’s the same issue and not potentially a new, related one if that makes sense. Thanks and hope to hear from you soon, we’ll get this looked into!

Hi @Alan_G ,

I am having this same issue:

  • If I build the deep link url with `/current/` I get redirected to the Draft theme
  • If instead I build the deep link url with `/${themeId}`, I get the correct theme

Hey @Luiz_Faro , thanks for reaching back out. Happy to look into this. Would you be open to sharing your shop URL (myshopify.com) and the theme ID? Definitely can look into this further for you.

Hope to hear from you soon.

Hi @Alan_G ,

Sure, no problem - and just to be clear: I am an app developer with a published public app, so I am creating and using these URLs to navigate my users to their theme editor. In other words, I am seeing this issue in multiple themes and multiple stores…


Concrete example:

Store: genio-dev-2.myshopify.com
Published theme: Ritual, theme id = 178281316681

This URL: https://admin.shopify.com/store/genio-dev-2/themes/current/editor?context=apps&template=product&activateAppId=d5a49f12-506e-440d-9e74-ee2c8c8f5786/app-embed

Gets navigated to: https://admin.shopify.com/store/genio-dev-2/themes/169974071625/editor?context=apps&previewPath=%2Fproducts%2Fthe-multi-managed-snowboard&appEmbed=66ffb9291fa55e1c6625ab2be536673e%2Fapp-embed

And that theme id (169974071625) is from a Dawn theme still in Draft mode…


I have been using the /themes/current URL since times immemorial; I cannot say when this started happening, but I believe it is recent…

Please let me know if I can help in anyway!

All the best,

Luiz

Hey @Luiz_Faro - thanks for sharing the info above there. I’ll get in touch with some folks internally and investigate further. I’ll be back in touch in this thread once I have next steps.