Solved

Deep Link to header section not working, please help!

da_bob
Shopify Partner
1 0 0

I am trying to use a deep link to an app extension / app embed so the user can just turn it on easily as part of the install flow but I can't get it to work. This is the deep link I've created:

https://{shop_url}/admin/themes/current/editor?addAppBlockId=7a2b8f57-8d03-47a9-8683-4222c639f0f8/blockname&target=sectionGroup:header

 This yields a response:

"blockname" not added. There is a problem with the app block. Contact the app developer.

 

In the blockname.liquid file I have:

<script src="{{ 'blockname.js' | asset_url }}" defer></script>

{% schema %}
{
"name": "AppName",
"settings": [],
"target": "head"
}
{% endschema %}

 

When I manually add the app embed, on the shop in question looking at the code I see:

 

 

<!-- BEGIN app block: shopify://apps/appname/blocks/blockname/7a2b8f57-8d03-47a9-8683-4222c639f0f8 -->
<script src="https://cdn.shopify.com/extensions/a8177303-19b6-4337-807d-5c29cd5a5b02/appname-1/assets/blockname.js" defer=""></script>
<!-- END app app block -->

 

 

and the app extension works fine.

 

Please help me create a valid deep link.

 

NB: I have changed the appname and blockname to create this post but the IDs I've left in tact

Accepted Solution (1)

SBD_
Shopify Staff
1829 269 407

This is an accepted solution.

Hey @da_bob 

 

To link to the app embed, try this:

 

/admin/themes/current/editor?context=apps&appEmbed=7a2b8f57-8d03-47a9-8683-4222c639f0f8%2Fchatbot

Scott | Developer Advocate @ Shopify 

View solution in original post

Reply 1 (1)

SBD_
Shopify Staff
1829 269 407

This is an accepted solution.

Hey @da_bob 

 

To link to the app embed, try this:

 

/admin/themes/current/editor?context=apps&appEmbed=7a2b8f57-8d03-47a9-8683-4222c639f0f8%2Fchatbot

Scott | Developer Advocate @ Shopify