diff --git a/smartgears/sharelatex_connector/templates/sharelatex-web.xml.j2 b/smartgears/sharelatex_connector/templates/sharelatex-web.xml.j2
index ebd19b6e..86fb399f 100644
--- a/smartgears/sharelatex_connector/templates/sharelatex-web.xml.j2
+++ b/smartgears/sharelatex_connector/templates/sharelatex-web.xml.j2
@@ -5,7 +5,7 @@
 	</context-param>
 	<context-param>
 		<param-name>hostName</param-name>
-		<param-value>{{ sharelatex.d4science.org }}</param-value>
+		<param-value>{{ sharelatex_hostname }}</param-value>
 	</context-param>
 	<context-param>
 		<param-name>mongoHost</param-name>