Admin Extension link replacements

In the old admin link pattern, the URL is a route from the resource (eg: Product id: 12345) to the App for manipulating product 12345. While it was a cognitive disruption to the merchant, from the developer perspective, it was easy enough.

Now in replacing these links with extensions, we get the entry in our extension from the CLI and two things of interest. As an example, this represents a link to an order, courtesy the CLI import.

 [[extensions.targeting]]
  url = "app://order"
  target = "admin.order-details.action.link"

So the only tasty morsel missing is the ID. There is zero explanation in the docs as per the ID for this extension to work. In other words, regardless of the intent by Shopify to have a React Modal perform the wonders, if we’re still sending the merchant to the App to render the resource manipulation, how does this extension code help with that? What is the 1:1 replacement in other words?

Hello @hunkybill,

Thank you for reaching out. I would highly recommend that you use an Admin Action Extension as this is the green path forward for developing extensions in Shopify Admin. However, we do recognize that there are currently some limitations that render some workflows difficult to represent in a modal.

That said, the new Admin Links introduce a new way of authoring links and do not alter any functionality. So, you should be able to access the resource that same way you have before through the id query param.

Please let us know if you any further questions.

Hi, your link to explaining new Admin Links is 404? Can you please fix the link pointing to an explanation of how to use new Admin Extension Links since this is not a case of needing a modal but instead just a transition into an embedded App.

Apologies. I’ve updated the link above.