Disable home_url rewrite with WPML plugin

admin

Administrator
Staff member
I'm using the <a href="http://wpml.org/" rel="nofollow">WPML</a> Wordpress plugin to translate my website. My default language is French. When I'm in a translated page, the
Code:
home_url()
is rewrite with the current language. How can I disable this rewrite so my
Code:
home_url()
always redirect to the french homepage?

Translate page url : <a href="http://www.mydomain.com/en/test/" rel="nofollow">http://www.mydomain.com/en/test/</a>

Actual
Code:
home_url()
: <a href="http://www.mydomain.com/en/" rel="nofollow">http://www.mydomain.com/en/</a>

Desired
Code:
home_url()
: <a href="http://www.mydomain.com/" rel="nofollow">http://www.mydomain.com/</a>

I've already tried these solutions :

<a href="http://wpml.org/forums/topic/wpml-overwrites-home_url-to-append-language-suffix/" rel="nofollow">http://wpml.org/forums/topic/wpml-overwrites-home_url-to-append-language-suffix/</a>
<a href="http://wpml.org/documentation/support/creating-multilingual-wordpress-themes/home-page-link/" rel="nofollow">http://wpml.org/documentation/support/creating-multilingual-wordpress-themes/home-page-link/</a>
<a href="http://wpml.org/forums/topic/wpml-changed-my-default-home-url/" rel="nofollow">http://wpml.org/forums/topic/wpml-changed-my-default-home-url/</a>

Sorry for my poor english and thanks for the help!
Let me know if I need to provide any other information.