Title: Qtranslate-slug getting double language code in URL
Last modified: August 21, 2016

---

# Qtranslate-slug getting double language code in URL

 *  [bskol10](https://wordpress.org/support/users/bskol10/)
 * (@bskol10)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/getting-double-language-code-in-url/)
 * Hi
 * when i activate this plugin, my URL’s now look like this:
 * [http://www.mysiteurl.com/fr/fr/about-us/](http://www.mysiteurl.com/fr/fr/about-us/)
 * Not sure what im doing wrong. Please assist!
 * [http://wordpress.org/plugins/qtranslate-slug/](http://wordpress.org/plugins/qtranslate-slug/)

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

 *  Anonymous User
 * (@anonymized-13630879)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/getting-double-language-code-in-url/#post-4345045)
 * Hi,
 * I had the same problem with double language codes in URL and found out that it
   was a function that is called “qtrans_fixSearchForm” in qtranslate_hooks.php.
 * My problem started when i added search functionality and multiple languages to
   my WordPress site.
 * If you still got the problem it would probably work after you uncomment “qtrans_fixSearchForm”-
   function in qtranslate_hooks.php (qTranslate’s plugin folder). You would find
   the function somewhere around line ~200 in qtranslate_hooks.php.
 * Hope this will help others that got the same problem.
 *  [Igor Aleksic](https://wordpress.org/support/users/lolosland/)
 * (@lolosland)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/getting-double-language-code-in-url/#post-4345046)
 * Hm.. unfortunately that didn’t help, im getting the double language for some 
   style sheets and javascript after enabling the qts.
 *  [Mohammed Al-Mahdawi](https://wordpress.org/support/users/engrmth/)
 * (@engrmth)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/getting-double-language-code-in-url/#post-4345047)
 * **I have the same problem when the user search in my site. if the user search
   in the default x language the URL become:**
 * `http://www.mydomainname.com/x/x/?s=anykeyword`
 * **And if he search in y language the URL become:**
 * `http://www.mydomainname.com/y/y/?s=anykeyword`
 * **And in both cases he take 404 Page Not Found.**
 *  [Igor Aleksic](https://wordpress.org/support/users/lolosland/)
 * (@lolosland)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/getting-double-language-code-in-url/#post-4345048)
 * Hey guys, if you have search problems try this solution from this site: [http://kuchenundkakao.wordpress.com/2012/08/10/qtranslate-slug-bugfixing/](http://kuchenundkakao.wordpress.com/2012/08/10/qtranslate-slug-bugfixing/)
 * as for others that may have some 404 stylesheet errors try looking into your 
   template header codes. In my case it was template error so i hardcoded the problematic
   ones.

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

The topic ‘Qtranslate-slug getting double language code in URL’ is closed to new
replies.

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

## Tags

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

 * 4 replies
 * 4 participants
 * Last reply from: [Igor Aleksic](https://wordpress.org/support/users/lolosland/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/getting-double-language-code-in-url/#post-4345048)
 * Status: not resolved