ezsystems/ezpublish-legacy — pull request #1123 by joaoinacio (2014-12-04 14:59:14+00:00)
Title: Ezp 23753 node alias translation

JIRA: https://jira.ez.no/browse/EZP-23753

Problem:
When a node that exists on a language different from the siteaccess default language, but has a translated parent/path, the UrlAlias will be incorrect.
For example, for a "FreFolder/EnArticle" the returned alias in fre siteaccess is "EnFolder/EnArticle".
Besides incorrect, this causes additional problems when there is a `PathPrefix` setting for that SA.

This happens because `eZContentObjectTreeNode` requests the alias in the current node's language:
``` eZURLAliasML::fetchPathByActionList( "eznode", $pathArray, $this->CurrentLanguage );```

The fix from EZP-20494 resolved this by prefering the wanted language ONLY for the last node, and returning the rest of the path according to the prioritized languages, however it introduced a change in behavior as well.

This PR resolves the problem by reverting 20494 (if applicable), and having the node fetch the alias full path using solely the prioritized language list.