<p>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.</p>

CC BY-SA 4.0
2019-08-09T10:01:55.623Z
2019-08-26T21:52:01.243Z
2019-08-26T21:52:01.243Z
joomkit
<p>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.</p>

<p>Does anyone know why this wouldn't work?</p>

<p><a href="https://i.sstatic.net/5ftor.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/5ftor.jpg" alt="Craft 2 arabic routing"></a></p>

<localization><routes>
Route to entry in Arabic not working but category route is OK
# Route to entry in Arabic not working but category route is OK

(Asked by: username_0 on 2019-07-30)

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](https://i.sstatic.net/5ftor.jpg)](https://i.sstatic.net/5ftor.jpg)

**Tags:** localization, routes

---

## 1 answers

### Answer by username_0 on 2019-08-09. Score: 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.


---

