print full url template I'm building a multi language site but I'm facing a problem with an url.
In my template i have the following print rule for an url &lt;?php print $base_url.'/#project';?&gt;
The base url only prints http://www.codedesign.be/#project withouth the language selector. url is normal url/nl/#project or www.codedesign.be/fr/#project
You should use the url() function to create URLs.


  Generates an internal or external URL.


This functions handles all complexity of creating an URL, including language prefix. url() handles exernal URLs too.

You can also use the l() function to create anchor tags:


  Formats an internal or external URL link as an HTML anchor tag.
  
  This function correctly handles aliased paths and adds an 'active'
  class attribute to links that point to the current page (for theming),
  so all internal links output by modules should be generated by this
  function if possible.


In your case you can use:

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