SessionHelper is getting the wrong culture

Graham Mott asked on August 15, 2019 17:21

I have a predictive search which has recently been found to only be getting English results no matter the culture of the site. When looking into it I found that the SessionHelper is returning en-us despite the culture being de-de for example.

Any ideas what could be causing this?

Recent Answers


Brenden Kehren answered on August 15, 2019 17:42

You might want to specify a few more details like where you're getting results from, what version you're on, what developmet mode you're using, etc.

Secondly, if you're writing this code to do a search, you might want to use the LocalizationContext to get the current culture.

Lastly, if you're logged into the CMS and go to a page, whatever you've selected in the Pages app as a language, will always be displayed on the front side. For proper testing, open a private window and test OR log out of the CMS and perform your test.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.