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