1

I have successfully managed to route Arabic categories to a custom template. The Arabic URLs appear RTL which is strange (and correct?), but I cannot get the Arabic single entry to pick up the template. The image below is an example of the category route working for French and Spanish but not for a single entry in Arabic. This is on Craft 2.

Does anyone know why this wouldn't work?

Craft 2 arabic routing

1

So it looks like I made some false assumptions. In Chrome the Arabic URLs displayed are reversed in segment order. However, I assumed the same was true for Craft routing - the UI behaves in a RTL fashion when editing Arabic text in routes editing interface. But this is not true - it seems that Craft routes don't reflect the browser behaviour for RTL languages. Craft still keeps the normal order of segments when processing the route. So weirdly the URL is reversed in browser but Craft seems to 'see' the route match as left to right. Once I adjusted the route to 'normal' left to right segments the routing worked fine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.