Why is my collection page admin link not passing the id?

Why is my collection page admin link not passing the id?

Kris_Doyle
Shopify Partner
140 1 44

Hi Folks,

 

One of my app extension links seems to have stopped working in the last few days. It's a link on the Collection Details page. According to the dev docs linked below, when a user selects the link from the More options menu, it should be passing the id of the collection that the user is currently viewing, but it isn't.

https://shopify.dev/docs/apps/app-extensions/getting-started#tracking-incoming-admin-links

 

Instead, I'm receiving the same params I would expect when a user is first logging in to the app from their apps menu. In other words, I get hmac, timestamp, etc. but I don't get the id paramter I'm expecting. As a result, when the request comes into the app, there's no id so the app doesn't know where to direct the user to.

 

The other thing that's really strange is that if I'm on the Collection Details page and I click Collections from the Products menu, and then click back, the id is suddenly present in the URL. Something's definitely not right there.

 

Has anyone else seen this or know why this would have changed? Also, please keep in mind that the user is fully and correctly authenticated when they're clicking the admin extension link. It makes no difference what auth state the user is in before they click the link, the behaviour is the same. I can only get the id to show up in the admin link if I click Collections and then click back.

 

Replies 0 (0)