Title: Language Changes randomly
Last modified: August 24, 2016

---

# Language Changes randomly

 *  [Rasso Hilber](https://wordpress.org/support/users/nonverbla/)
 * (@nonverbla)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/language-changes-randomly/)
 * Hi there,
 * I use the plugin [soil](https://github.com/roots/soil) to have relative urls 
   in my source code. Combined with ajax requests this results in randomly changing
   languages… Any Idea what to do against that?
 * best!
 * [https://wordpress.org/plugins/qtranslate-x/](https://wordpress.org/plugins/qtranslate-x/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Gunu](https://wordpress.org/support/users/grafcom/)
 * (@grafcom)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/language-changes-randomly/#post-6054803)
 * [@nonverbla](https://wordpress.org/support/users/nonverbla/),
 * > this results in randomly changing languages
 * can you describe this more specific?
 *  Thread Starter [Rasso Hilber](https://wordpress.org/support/users/nonverbla/)
 * (@nonverbla)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/language-changes-randomly/#post-6055073)
 * Hi Gunu,
 * My setting is like so:
    - I have the plugin soil running, that makes my permalinks relative (without
      the home url)
    -  Then I am loading the pages using jquery.ajax and the html5 history api
    -  Now when I go to the side and click the first post, the language stays correct.
      Then I go back to the archive and click the next post, and now the wrong language
      gets loaded.
 * I fixed it by using the full absolute links again in the ajax calls.
 *  Plugin Author [Gunu](https://wordpress.org/support/users/grafcom/)
 * (@grafcom)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/language-changes-randomly/#post-6055075)
 * [@nonverbla](https://wordpress.org/support/users/nonverbla/),
 * do you have read [this article](https://qtranslatexteam.wordpress.com/2015/02/26/browser-redirection-based-on-language/)?
 * > go back to the archive and click the next post, and now the wrong language 
   > gets loaded.
 * Is it only goes wrong with the next and previous article links?
    In the menu 
   is everything works as desired?
 *  Thread Starter [Rasso Hilber](https://wordpress.org/support/users/nonverbla/)
 * (@nonverbla)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/language-changes-randomly/#post-6055076)
 * [@gunu](https://wordpress.org/support/users/gunu/),
 * I will check it again as soon as I get the chance at work, then I will report
   back. Thanks for your help and good night from Berlin 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Language Changes randomly’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/qtranslate-x_f9f9f9.svg)
 * [qTranslate X](https://wordpress.org/plugins/qtranslate-x/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/qtranslate-x/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/qtranslate-x/)
 * [Active Topics](https://wordpress.org/support/plugin/qtranslate-x/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/qtranslate-x/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/qtranslate-x/reviews/)

## Tags

 * [soil](https://wordpress.org/support/topic-tag/soil/)

 * 4 replies
 * 2 participants
 * Last reply from: [Rasso Hilber](https://wordpress.org/support/users/nonverbla/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/language-changes-randomly/#post-6055076)
 * Status: not resolved