?
avatar sohrab330
sohrab330
18 Jan 2016

Hello.
There is a problem in Joomla's Unicode Aliases which I had from joomla 2.5 when I first built a multilingual website and still is the same in Joomla 3.4.
The problem is that when I use a unicode URL like in Persian language or Arabic the arrangement or ordering of the categories and subcategories or (Menu or Submenu and article alias) is inverse.

for example in non unicode like English URLs we might have:

http://example.com/menu1/submenu1/article1

However in unicode aliases like Persian language URL, it is vise versa, like:

http://example.com/article1/submenu1/menu1 .

This might not be a big problem. However, I know many users see urls to know where they are and this issue will confuse them. For you don't know which one is start and which's end. Also many enjoy clean URLS.

I would appreciate for any good suggestions. I would like to fix this issue in all my Joomla websites.

Votes

# of Users Experiencing Issue
2/2
Average Importance Score
5.00

avatar sohrab330 sohrab330 - open - 18 Jan 2016
avatar infograf768
infograf768 - comment - 19 Jan 2016

Issue confirmed.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8931.

avatar brianteeman brianteeman - change - 22 Jan 2016
Status New Confirmed
avatar alexva24
alexva24 - comment - 28 Jan 2016

I suggest reverse the url segments for rtl-languages. I may make a PR.

avatar sohrab330
sohrab330 - comment - 29 Feb 2016

do you know where can I find the url segments?


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8931.

avatar brianteeman brianteeman - change - 11 Mar 2016
Category RTL Router / SEF RTL
avatar infograf768
infograf768 - comment - 23 Apr 2016

@Hackwar
What do you think?

avatar Hackwar
Hackwar - comment - 23 Apr 2016

Sorry, but I don't understand the issue fully. Are you saying that you want the URL to be inversed or that it is falsely inversed?

avatar islam2hamy
islam2hamy - comment - 25 Apr 2016

The url need to be rtl "http://example.com/menu1/submenu1/article1"
it is now like this "http://example.com/article1/submenu1/menu1" in rtl language .


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8931.

avatar Hackwar
Hackwar - comment - 25 Apr 2016

I can't find anything in the core code that would inverse the URL. I would guess that that is some special code in the language pack that adds its own routing rule and produces this.

avatar infograf768
infograf768 - comment - 25 Apr 2016

@Hackwar
I don't think so. RTL is at stake here, no special code in language packs.

avatar brianteeman
brianteeman - comment - 25 Apr 2016

I can confirm this issue ONLY when the url is unicode. When the alias etc is written in latin character set then there is no problem when using an RTL language (even if use unicode is selected) but as soon as the alias is unicode eg hebrew or arabic characters then the url is reversed as stated by @islam2hamy


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8931.

avatar Hackwar
Hackwar - comment - 25 Apr 2016

I've looked through the code and can't find a place where this is done.

avatar brianteeman
brianteeman - comment - 25 Apr 2016

Well its happening somewhere ;) and its not if its RTL but if it is RTL +
unicode alias

On 25 April 2016 at 14:20, Hannes Papenberg notifications@github.com
wrote:

I've looked through the code and can't find a place where this is done.


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#8931 (comment)

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar Hackwar
Hackwar - comment - 25 Apr 2016

I believe you. The code is most likely in a place where it doesn't belong and was written with the best intentions. I'm just saying that I can't find it, at least not in the core routing code. :wink:

avatar sohrab330
sohrab330 - comment - 25 Apr 2016

I am thinking maybe there is no code for this at all and its a default behavior of browsers. However , to fix that, we should add some lines of codes.

avatar brianteeman
brianteeman - comment - 25 Apr 2016

I think its not the browser but the inherit nature of the unicode characters that are setting everything to RTL
We are expecting it to be domain.com/category/article where they are three distinct parts but PERHAPS we are sending category/article as a single "word" so the entire block is being set to RTL and not as individual blocks


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8931.

avatar islam2hamy
islam2hamy - comment - 11 May 2016

ok , i see .

so , any good news ?


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8931.

avatar islam2hamy
islam2hamy - comment - 20 May 2016

i think it is all about the category / article "id" , if it can be in the end of category / article in the RTL url , it may work !

components/com_content/router.php

http://example.com/products/32-fruit/1-apple -----> http://example.com/products/fruit-32/apple-1


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8931.

avatar brianteeman
brianteeman - comment - 20 May 2016

That would not work. It has to be id-alias

avatar islam2hamy
islam2hamy - comment - 11 Jun 2016

if i print an article we will see that , the url at the top off the page look like this

"article1/submenu1/menu1/http://example.com"

the site domain name appear before the article link detail

is this illustrate anything ? or it is from the PDF!
url_article_print


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8931.

avatar bosyrih
bosyrih - comment - 6 Aug 2016

HI THERE
I am in documentation team translation to Arabic language.
the same issue occurred when translation some documents in other languages that use RTL.

problem cause:
It is common for content in Arabic, Parisian, and other languages that use right-to-left scripts to include numerals or include text from other scripts. Both of these typically flow left-to-right within the overall right-to-left context.

it is important to realize that, basically, the problems all occur when content in one direction includes an inline phrase in the opposite direction. We will call these opposite-direction phrases. An opposite-direction phrase may be a single directional run (such as a word), or may be a set of directional runs with an embedded change in base direction.

Common examples of such phrases include quotations, titles of books, articles or plays, formatted numbers (e.g. phone numbers and MAC addresses), street and email addresses, and various names, such as brand names, acronyms, part numbers, site names, place names, file names (and paths), etc.

The problem is worse in applications that drop text into a page, say from a database. The application often does not know a-priori whether such text is (or perhaps contains) an opposite-direction phrase, and has to estimate its direction at run-time by checking the Unicode ranges of its characters. HTML5 introduces a feature for doing so in the browser.

Whenever an opposite-direction phrase occurs, things can go wrong. That is, something will go wrong if the text includes, without any special "wrapping", an inline opposite-direction phrase that:

begins or ends with neutral characters,
begins with a number,
is followed by a number,
is followed by another, but logically separate, opposite-direction phrase,
contains one or more nested phrases whose base direction is opposite to that of the phrase.

that is the issue you can find the full description and how to solve in the following link in W3C
https://www.w3.org/International/articles/inline-bidi-markup/

hope that will solve the problem to fix lot of things that you mentioned and others in joomla! for unicodes.

thanks all


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8931.

avatar brianteeman
brianteeman - comment - 6 Aug 2016

Hi and thanks for your explanation. Unfortunately although it's a related
issue of bidi it's going to need a different solution as we are taking
about URLs here so can't apply a direction tag.

avatar bosyrih
bosyrih - comment - 7 Aug 2016

yes but maybe this link describe the problem more
https://www.w3.org/International/wiki/IRIStatus#Unicode_Bidirectional_Algorithm_Failure
for URLs


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8931.

avatar brianteeman
brianteeman - comment - 7 Aug 2016

yes - perfect - thats exactly it - THANKYOU

On 7 August 2016 at 01:06, Hussien Al Bosyri notifications@github.com
wrote:

yes but maybe this link describe the problem more
https://www.w3.org/International/wiki/IRIStatus#Unicode_Bidirectional_
Algorithm_Failure

for URLs

This comment was created with the J!Tracker Application
https://github.com/joomla/jissues at issues.joomla.org/joomla-cms/8931
https://issues.joomla.org/tracker/joomla-cms/8931.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#8931 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPH8dJfTRSaoTv5RBrWsunQ7ysi4FV-ks5qdSGRgaJpZM4HHIHm
.

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar brianteeman brianteeman - change - 5 Sep 2016
Status Confirmed Known Issue
Closed_Date 0000-00-00 00:00:00 2016-09-05 11:23:09
Closed_By brianteeman
avatar brianteeman brianteeman - close - 5 Sep 2016
avatar brianteeman
brianteeman - comment - 5 Sep 2016

Hi

I am closing this as a known issue. It is not a Joomla issue but an internet browser / operating system issue and there is nothing we can do about it (check other systems and you will see the same thing).

It may look odd to some people but its the expected behaviour when you mix an LTR domain with an RTL url.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8931.

Add a Comment

Login with GitHub to post a comment