issue Target is too long (maximum is 255 characters)

Highlighted
New Member
1 0 0

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

For example

{'redirect': {u'path': '/9780263299014', 'target': u'/products/post/%D9%85%D9%82%D8%A7%D8%B3%D8%A7%D8%AA-%D8%A7%D9%84%D8%AF%D8%A7%D8%AC%D8%A7%D8%AA-%D8%A7%D9%84%D9%87%D9%88%D8%A7%D8%A6%D9%8A%D8%A9-%D9%83%D9%8A%D9%81-%D8%AA%D8%AE%D8%AA%D8%A7%D8%B1-%D9%85%D9%82%D8%A7%D8%B3-%D8%A7%D9%84%D8%AF%D8%B1%D8%A7%D8%AC%D8%A9-%D8%A7%D9%84%D9%85%D9%86%D8%A7%D8%B3%D8%A8%D8%A9-%D9%84%D9%83'}}

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

0 Likes