I am using the Products module in a multilingual e-shop like site. I 've also enabled pretty urls. Each page exists in all languages and the active language is determined from the first component of the url. If for instance it starts with 'en', the english language is used. I am using {$cgsimple->get_root_alias()} for that. So far so good.
Unfortunately, when I try to navigate from a product summary page to a product detail page the detail view is rendered using the default language of the site. Note that the rest of the page is rendered correctly using the right language and not the default. Looks like I can't pass the language info to the Products module.
By the way, the url that displays the detail looks like:
Code: Select all
http://mydomain/Products/2/26/6
26 - is the page id
6 -

The are two workarounds that come to my mind but none seems appropriate. The first would be to pass the language information in the GET request. For instance, append something like "&XXXlang=en". This can't be used since i am using pretty urls. At least not without messing with the Products source code. The second would be to use a POST instead of a GET and put an additional lang parameter in the post but obviously that doesn't seem right.
Any ideas?