Developer forum

Forum » Swift » Ecom.SelectedLangID.Frontend get stuck

Ecom.SelectedLangID.Frontend get stuck

Simen
Reply

Hi,

 

After upgrading to 9.19.2, it seems we've encountered a language bug.

When entering a PDP, the Ecom.SelectedLangID.Frontend is correctly selected. However, when attempting to change the language afterward, it remains stuck on the original value.

 

 

This might be relevant to our issue - https://doc.dynamicweb.dev/documentation/fundamentals/dw10release/releasenotes/workiteminfo.html?workitemid=24583

Has anyone else experienced this behavior after the 9.19.2 upgrade?
Can adding "?LanguageID=LANG" to the url on language swith be the solution? Seems a bit hacky, but might do the job.

//Simen


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Simen

What version did you upgrade from? I see no changes in this part of the code on DW9 in the past 2-3 years.

I am wondering why Ecom.SelectedLangID.Frontend is even set on the product detail page - do you link to the product from the list, and when entering the detail page, the Ecom.SelectedLangID.Frontend is set? How is your use of ?languageid=langXYZ parameter?

24583 is related to backend - I updated the item description to make it more clear.

 
Simen
Reply

Hi Nicolai,

Ok, I just thought that our issue could relate to the latest DW upgrade based on 24583 ticket. But then it seems like it's related to our custom code somehow. 

We need the Ecom.SelectedLangID.Frontend to translate a part of the page. 

We currently don't use ?languageid=langXYZ parameter, was just wondering if that could be an easy fix.

Thanks!

//Simen

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

The ?languageid is mean to set the language of the user - and controls the cookie you mention.

 

You must be logged in to post in the forum