[wp-trac] [WordPress Trac] #47755: Permalink in RTL version not correct (was: Permanlink in RTL version not correct)

WordPress Trac noreply at wordpress.org
Fri Jun 17 17:02:58 UTC 2022


#47755: Permalink in RTL version not correct
--------------------------+------------------------------
 Reporter:  rachid84      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Permalinks    |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  ui, rtl
--------------------------+------------------------------

Old description:

> I have notice many problem with permanlik in version RTL:
> 1- for example : https://www.byarabic.com/category/دروس/تعلم-السياقة/
> تعلم-السياقة = child
> دروس = parent
>
> in LTR this is how it was : http://www.example.com/category/parent/child
> but in RTL it display like this :
> http://www.example.com/category/child/parent
> so the correct direction is http://www.example.com/category/parent/child
> all url must be in LTR direction even if it in arabic letter.
> so the correct direction for my permalink must be like this :
> https://www.byarabic.com/category/تعلم-السياقة/دروس
> *** if you have an arabic support please let him to write the link manual
> and you will see the first word after "category" will write like this :
> category/دروس/
> but the second word in arabic after category/دروس will write like this :
> category/دروس/تعلم-السياقة  this is a problem , because the second word
> in arabic must be the last word in url , like this category/تعلم-
> السياقة/دروس
>
> 2- setting -> permanlik : the input field it appear behind text :
> https://prnt.sc/oi7t8x
> the correct way to show input field it like version LTR, like this :
> https://prnt.sc/oi7u63
>
> 3- also the same problem in article :
> —- first about the title of the post it show like this
> https://prnt.sc/oi7v2a
> but the correct way is like this : https://prnt.sc/oi7w42
> — other place show wrong direction of permalink, like this :
> https://prnt.sc/oi7wjy
>
> 4- about decode url: if I copy an arabic permalink from browser and I
> past it in other place like here it will dipslay some symbole like %%%%%
> :
> example of my permalink :
> https://www.byarabic.com/category/%d8%af%d8%b1%d9%88%d8%b3/%d8%aa%d8%b9%d9%84%d9%85-%d8%a7%d9%84%d8%b3%d9%8a%d8%a7%d9%82%d8%a9/
>
> so I have to decode link to fix the problem and then I can send it to my
> friend
> I use this website to decode it : https://www.url-encode-decode.com/

New description:

 I have notice many problem with permalink in version RTL:

 1- for example : https://www.byarabic.com/category/دروس/تعلم-السياقة/
 تعلم-السياقة = child
 دروس = parent

 in LTR this is how it was : `http://www.example.com/category/parent/child`
 but in RTL it display like this :
 `http://www.example.com/category/child/parent`
 so the correct direction is `http://www.example.com/category/parent/child`
 all url must be in LTR direction even if it in arabic letter.
 so the correct direction for my permalink must be like this :
 https://www.byarabic.com/category/تعلم-السياقة/دروس

 *if you have an arabic support please let him to write the link manual and
 you will see the first word after "category" will write like this :
 category/دروس/
 but the second word in arabic after category/دروس will write like this :
 category/دروس/تعلم-السياقة
 this is a problem , because the second word in arabic must be the last
 word in url , like this
 category/تعلم-السياقة/دروس

 2- setting -> permalink : the input field it appear behind text :
 https://prnt.sc/oi7t8x
 the correct way to show input field it like version LTR, like this :
 https://prnt.sc/oi7u63

 3- also the same problem in article ''(block editor)'' :
 — first about the title of the post it show like this
 https://prnt.sc/oi7v2a
 but the correct way is like this :
 https://prnt.sc/oi7w42
 — other place show wrong direction of permalink, like this :
 https://prnt.sc/oi7wjy

 4- about decode url: if I copy an arabic permalink from browser and I past
 it in other place like here it will display some symbols like `%%%%%` :
 example of my permalink :
 `https://www.byarabic.com/category/%d8%af%d8%b1%d9%88%d8%b3/%d8%aa%d8%b9%d9%84%d9%85-%d8%a7%d9%84%d8%b3%d9%8a%d8%a7%d9%82%d8%a9/`

 so I have to decode link to fix the problem and then I can send it to my
 friend
 I use this website to decode it : https://www.url-encode-decode.com/

--

Comment (by sabernhardt):

 Thanks for the report!

 Child pages/categories (#47565):
 - [https://core.trac.wordpress.org/browser/trunk/src/wp-
 admin/includes/post.php?rev=53455#L1530 Permalinks within the admin]
 (including Classic Editor) use `‎`. We might want to add another
 entity for each parent page or category.

 Permalink Settings screen:
 - Fixing the custom structure field in RTL is part of the patch on #55498.
 - For the Category/Tag Base fields, subdirectory network installations can
 show a `/blog` prefix before the input field with the slash on the wrong
 side. I think I would rather fix that on this ticket instead of 55498.

 Block editor:
 - RTL support is better since GB12729 and GB13551, though permalinks still
 reverse child page slugs with parents.
 - I'll add suggestions for the post-publish panel on
 [https://github.com/WordPress/gutenberg/issues/16400 your Gutenberg issue,
 GB16400].

 Decoding:
 - The "Copy to clipboard" buttons in the admin and editor likely could
 decode their URLs.
 - When editing a comment, the permalink on that screen is encoded.

 [https://wordpress.org/support/topic/permanlink-in-rtl-version-not-
 correct/ Related support topic]

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47755#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list