Fix 404 when selecting a different language when not on the homepage.
Also fixes the url=url=url= when multiple times switching languages.
(tested with and without mod_rewrite enabled.)