diff --git a/endpoints/common.py b/endpoints/common.py
index e81b4facf..bc57c1beb 100644
--- a/endpoints/common.py
+++ b/endpoints/common.py
@@ -207,6 +207,8 @@ def render_page_template(name, **kwargs):
cache_buster=cache_buster,
has_billing=features.BILLING,
contact_href=contact_href,
+ hostname=app.config['SERVER_HOSTNAME'],
+ preferred_scheme=app.config['PREFERRED_URL_SCHEME'],
**kwargs))
resp.headers['X-FRAME-OPTIONS'] = 'DENY'
diff --git a/templates/index.html b/templates/index.html
index a0bf60469..120b7865c 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -10,7 +10,7 @@
-
+
{% endblock %}