Redirect character limit of 255

Highlighted
Explorer
48 2 8

There looks to be a redirect character limit of 255, which is a problem

For example

{'redirect': {u'path': '/9780263299014', 'target': u'/products/modern-romance-january-2021-a-books-1-4-the-cost-of-claiming-his-heir-the-delgado-inheritance-breaking-the-playboys-rules-chosen-for-his-desert-throne-what-the-greeks-wife-needs-mills-boon-collections-michelle-smartmelanie-milburnecaitl?variant=32578493972558'}}

Gives

{"errors":{"target":["is too long (maximum is 255 characters)"]}}

My understanding is that a handle can be 255 characters so having a redirect limit of 255 makes no sense to begin with, never mind when you add on the location and the variant ID.

Is there a way around this (could the product ID be used), or even better, can the limit be changed

Thanks

Grant

 

0 Likes