Focusing on managing products, variants, and collections through the API.
Hi, there is a big problem currently, and it could be fixed very easily!
Let's say you use the API to rename a collection handle from 'collection-1' to 'collection-2'
All the product links that are /collections/collection-1/products/product-1 will be broken, so my app has to go and create redirects for every product in a collection, which could be hundreds or thousands. /collections/collection-1/products/product-1 -> /collections/collection-2/products/product-1
Instead, why not create a server rule that will automatically redirect the product links as well! It would be so easy to implement. Manually creating redirects when changing collection handles is crazy - it can take over an hour for a single collection, since several api calls are required (for lookup + update/create).
Or, simply ban all /collections/collection-name/products/product-name urls. They almost always create Invalid Canonical Errors in Google Search Console. (I've only seen 1 merchant that modified their product canonicals to support this which I didn't even know that was possible!).
Any other suggestions concerning this issue is welcome! Cheers
Solved! Go to the solution
This is an accepted solution.
Hi Jason27,
Fully understand how your suggested approaches would make URLs and merchant stores more robust. I've passed this feedback to our product teams internally - thanks for this feedback!
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
This is an accepted solution.
Hi Jason27,
Fully understand how your suggested approaches would make URLs and merchant stores more robust. I've passed this feedback to our product teams internally - thanks for this feedback!
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Thanks Liam, yall have been super responsive on the forums as of late. Cheers!