I’m trying to open the Shopify theme editor and automatically add my app block using this URL:
https://$``{getShopDomain()}/admin/themes/current/editor?template=${template}&addAppBlockId=${themeExtensionId}/video-carousel&target=newAppsSection
It opens the theme editor as expected, but the app block is not being added automatically.
This issue seems to occur specifically with the new Horizon themes, while older themes worked fine with the same approach.
Is the addAppBlockId parameter no longer supported or changed for Horizon themes?
If so, what’s the correct or recommended way to programmatically open the theme editor and add an app block to the active theme?
Has anyone managed to get this working recently?