Here, I think you could use an agnostic base.
Try:
<pre>
'//' + request.registry.settings['host']
</pre>