Linking to front page with current selected language &lt;?php print $base_path; ?&gt; Links to the front page with default language, So If site's default language is set to A and a user has selected language B, this code redirects user to the front page with language A. 

Is there away to link to front page while keeping the current selected language?
Use the following code:

&lt;?php print url('&lt;front&gt;', array('absolute' =&gt; TRUE)); ?&gt;