buildlink() generates wrong multilanguage link

Description

Prequisites:

  • multilingual.enabled = true

  • primary (for me: 'de') and additional ('en') languages set in the settings

  • slug field set to multilingual=true

Slugs for all languages are set and can be called directly without any problems.

The Problem is:
<cfscript>
event.setLanguage('de'); // Set language to primary language
link = event.buildLink( page= id ); // Result: http://.../de/zimmer/raum1.html

event.setLanguage('en'); // Set language to additional language
link = event.buildLink( page= id ); // Result: http://.../de/rooms/room1.html
</cfscript>

In the second case the language set in the link is still 'de' but it should be 'en'.

Environment

None

Assignee

Unassigned

Reporter

Michael Hnat

Labels

None

Accepted

None

Affects versions

Priority

High
Configure