Deep link sometime leads to the wrong app block

Hello. I have a theme extension with 4 app blocks. For every block, I created a separate deep link like
https://store.myshopify.com/admin/themes/current/editor?addAppBlockId=/some-player&target=newAppsSection

The problem is that very often that link leads to the first app block in the app list with another name. For example, I want to see the app block some-player, but the first-player app block is opened. But 2 times from 10, the correct some-player app block is opened correctly, and the deep link is the same all the time.

It can be reproduced by just entering the same deep link into the browser repeatedly.

Is it a bug or something else?

2 Likes

Hey,

Have you tried checking each block’s UUID is unique and not overlapping?

Try renaming blocks with unique names. May be it can help!

The UUID is one for all app blocks, and it’s correct according to the shopify docs. But a handle for each app block is unique. Like

addAppBlockId=/some-player
addAppBlockId=/first-player
addAppBlockId=/other-block

Did you find any solution? I am facing the same issue

1 Like

Check this - may be it can help!

https://community.shopify.dev/t/error-in-a-deep-link-for-adding-app-block-extension/2659

https://community.shopify.dev/t/deeplinking-of-app-blocks-sometimes-adds-a-wrong-app-block-to-the-page/12110

Hello, We are also facing the same issue. Where different app block is getting added.

Thank you. But that didn’t help.

@Shopify_77 Are you going to fix that bug?

3 Likes

Thank you very much, we also encountered such a problem. Through your description, we know that this is a deep link failure.

1 Like

I have the same issue. It just loads the app block from the first app inside “Apps” section, almost every time…