Redirects of URLs with fragments

scj2
New Member
1 0 0

I'm trying to migrate a shop that uses an url schema with fragments, ie. "/store#!/product/product-1", but when I try to add the redirects the source url gets stripped at the # symbol and is saved just as "/store"

I have tried csv imports, and via the python api, but neither seems to work.

>>> rr = shopify.Redirect({"path":"/store#!/product/product-1", "target":"/product/product-1"})
>>> rr.is_valid()
True
>>> rr.save()
True
>>> rr.path
'/store'

 

Does anyone have any suggestions on how to go about this without every old product url getting 404'd?

0 Likes