Loosing cgi parameters when switching languages with LinguaPlone installed

2 Messages Forum Options Options
Embed this topic
Permalink
francoise
Loosing cgi parameters when switching languages with LinguaPlone installed
Reply Threaded More
Print post
Permalink
Hi,

My site uses many Zope page templates and uses cgi parameters a lot.

Migrating to Plone 3.0, my cgi parameters where lost with Plone LanguageTool when changing the language with the flags.

I found a workaround by customizing LanguageTool switchLanguage.py to something similar to the old Localizer code :

   redirect=REQUEST['HTTP_REFERER']
   REQUEST.RESPONSE.redirect(redirect)

This worked fine for me.

But in Plone 3.1, with LinguaPlone installed, I'm loosing my parameters again despite my switchLanguage customization.

Uninstalling LinguaPlone, with my customized switchLanguage.py, it works.

What could I do ? Is there something I can customize or parameterize in LinguaPlone that I would really like to keep ?

Thanks
francoise
Re: Loosing cgi parameters when switching languages with LinguaPlone installed
Reply Threaded More
Print post
Permalink
For instance, I have pages accessed with the following kind of url :

      http://myssite/teams?id=14

If no identifier is given we display the team list.

If I click on another flag to see the page in another language, the url becomes :

       http://mysite/teams/switchLanguage?set_language=en

Thus I'm having a team list