title: Current site URL in Liferay 6.2
body: <p>I cannot figure out how to get URL of current site in Liferay. For example if i have created four <strong>sites</strong> - site1, site2, site3, site4. URL of this sites will be:</p>
  
  <pre><code>http://localhost:8080/web/site1/
  http://localhost:8080/web/site2/
  http://localhost:8080/web/site3/
  http://localhost:8080/web/site4/
  </code></pre>
  
  <p>But how can i get this URLs from velocity (in theme)? I tried few options:</p>
  
  <pre><code>$themeDisplay.getPathFriendlyURLPublic() - /web
  $themeDisplay.getPortalURL()             - http://localhost:8080
  $themeDisplay.getURLHome()               - http://localhost:8080/web/guest
  $themeDisplay.getURLCurrent()            - /web/site1/home
  </code></pre>
  
  <p>I need to get just <code>http://localhost:8080/web/actualsite/</code>.</p>