"home" link has no language code so, no matter what language you are currenly using, clicking on "home" switches to default language

Comments

costinius’s picture

same for me, subscribing

twiik’s picture

I noticed this as well today.

My quick hack to circumvent this on a site I'm making now was this:

<?php 
	switch($language) {
		case 'en':
			$homePath = $base_path . '?q=en';
		  break;
		case 'de':
			$homePath = $base_path . '?q=de';
		  break;
		default:
			$homePath = $base_path;
		  break;
	}
?>  

Luckily the only "home" link I had was the logo so it was easy to switch $base_path for $homePath. :)

BarisW’s picture

I had this as well. Check your site settings (start page). Make sure this isn't set to something like 'node/18' but use the translated pathalias, eg: 'home'. This worked for me.

jerry2.0’s picture

go to: admin/settings/language
the first select you language you want to set default.
click "edit" link in the line English languge

-Path prefix: enter "en".
=> Click saved language button.

go to admin/settings/language/configure
-checked "Path prefix only". => click "save settings" button
=> Finally click home button . Well done!