Does anyone know how to prevent silverstripe (2.4) outputting the protocol and host when linking to internal assets etc?
In the markup I am getting:
<script type="text/javascript" src="http://my.exampledomain.com/mysite/app/router.js?m=1340064453"></script>
and I want just:
<script type="text/javascript" src="/mysite/app/router.js?m=1340064453"></script>
The reason is that requests are going through a proxy so requests to https://localhost:8000/ are being proxied to http://my.exampledomain.com/ so I don't want http://my.exampledomain.com/ in the markup.
I've had a look around in Director and tried a few things including:
Director::setBaseURL('/');
Any ideas?