title: Absolute URLs for JS and CSS in Liferay Theme causing problems when behind proxy
body: <p>We all know that we can include custom JS/CSS in theme <code>portal_normal.vm</code> as:</p>
  
  <pre><code>&lt;script type="text/javascript" src="$javascript_folder/custom.js" charset="utf-8"&gt;&lt;/script&gt;
  &lt;link type="text/css" rel="stylesheet" src="$css_folder/your_custom.css"&gt;&lt;/link&gt;
  </code></pre>
  
  <p>Both the variables <code>$javascript_folder</code> and <code>$css_folder</code> result into an absolute URL.
  <code>http://content.liferay.com/4.3/misc/theme-api-4.3.0.html</code></p>
  
  <p>In my situation, the liferay runs behind a proxy server and hence, these absolute URLs are causing me a trouble and the js/css files are NOT getting loaded in the browser.</p>
  
  <p>Not only the files added using these velocity variables, but some other theme related files (<code>main.css</code>, <code>main.js</code>) are also not loaded into browser with server absolute URLs.</p>
  
  <p>Is there a way to force theme to use relative URLs instead of absolute?</p>
  
  <p>Thanks</p>