This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » Install & configuration » Multilangual URL Alias... always show...

Multilangual URL Alias... always show primary language

Multilangual URL Alias... always show primary language

Tuesday 16 November 2010 10:16:29 pm - 3 replies

Hi there,

I have a multi-language site. Now, i used the "URL-Alias" feature to set up additional "names" for some content nodes. I chose to use the "direct" type, not a 301 redirection.

That worked fine for the first language (german, in my case).

Now, set up an additional URL alias for another language (english) on the some content node. But ez always shows the german version of the content node. I expected, that it would "stay" on the current siteaccess and show the english version of the node OR even switch over to the english siteaccess and show the english version of the content object. But it does neither.

Even worst, it switches over to the german siteaccess (primary access) and shows the german version of the node.

How should i process to make sure, that my new "long english URL" will end up with the english content on the english siteaccess? I could use server Rewrite rules, but shouldn't ez at least manage to show the english content?

Any help very much appreciated.

That's ez 4.1.3, by the way

Modified on Tuesday 16 November 2010 10:17:03 pm by Marco Zinn

Thursday 18 November 2010 9:03:28 am


the problem seems related to the fetch('content', 'node', ... where the parameter


is not working properly fetching content in non-default language node.

there is a relative issue:

and Bertrand posted also a patch here:

modifying this row

$path = eZURLAliasML::fetchPathByActionList( "eznode", $pathArray, $this->CurrentLanguage );

(adding the parameter relative to the language) in the file


but in my installation (4.3.0) this did not solve the problem.

Any help is very appreciated


Friday 19 November 2010 7:07:08 pm

Hello Roberto,

thank you for your reply. And thanks for the GitHub link blunk.gif Emoticon . I found no link from the issue to the github screen.

Unfortunatly, this did not solve my issue either completly.

But now, when i specify the (non-default) siteaccess name "eng" with the URL, it does show the node in english. So, i can use http://hostname/eng/longlongurl to show up the node in english.

From i read, this this is the intended behaviour. ("Note that multilingual aliases do not control which language the requested page will be displayed in (this depends on the language configuration of the current siteaccess)."blunk.gif Emoticon

Edit: Just for documentation, if anybody else runs into this:

As the feature in ez is not (yet?) intended to work like this, i did a Tweak using an apache Redirect (in addition to specifying the URL Alias on the node).

RedirectMatch permanent ^/(very_long_url_for_englisch_version_of_node_for_search_engine)$ /eng/$1

This will tedirect any (unique) URL for a node to the (same) url alias in the english siteaccess. From there, ez kicks in and forwards or displays the node.

Modified on Sunday 21 November 2010 7:28:29 pm by Marco Zinn

Monday 29 November 2010 12:56:05 pm

I applied the Bertrand's patch to my multilingual site running with 4.4.0, but it still shows the main language. From error log: "No source name found, skipping message"

Any other solution?


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from