ShopifyAPI::Redirect Updating "Redirect To" value doesn't work

Highlighted
Shopify Partner
12 0 1

Why it seems like Shopify caching the first created and used  ShopifyAPI::Redirect `target` value.

For example, creating Redirect using the ruby gem: 

 

 

 

r = ShopifyAPI::Redirect.new path: '/no-product', target: '/'
r.save

 

 

 

This will work, but when I update the `target` value via API or manually in `/admin/redirects` page (for ex. new `target` value is `/products` )
When user revisit `/no-product` page it should redirect to `/products` url, but still used the first used/created target which is '/'.

I also tried to delete and recreate the redirect record, but same result.

 

 

0 Likes