Shopify Admin Link Always Returning 500 Error

Hi everyone,

We’re facing an issue where admin links defined in our .toml file consistently return a 500 error when accessed. We found a similar discussion here, but even after applying the suggested fixes, the problem persists.

What we tried:

  1. Initially, we used "app://path" URLs, but they also resulted in a 500 error.
  2. To isolate the issue, we kept only one admin link in our extension config:
[[extensions]]
type = "admin_link"
name = "Test link"
handle = "test-product-link"

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

Despite this, the link still fails with a 500 error.
3. Our app is embedded, and admin links created via the Partner Dashboard work fine.
4. We are not running shopify app dev in another tab during deployment.

Here is a recent request that failed:
Request ID: bade7d8f-5612-4d4c-a342-285b59161611-1738343398

Has anyone encountered this issue or found a solution? Any insights would be greatly appreciated!

Thanks!

1 Like