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.)

i'm not sure if i should change line 87 too.
I didn't notice any difference when changing it so i left it as it was.