Use relative URLs rather than hard coding the server name
authorTom Hughes <tom@compton.nu>
Fri, 10 Dec 2010 13:32:06 +0000 (13:32 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 10 Dec 2010 13:32:06 +0000 (13:32 +0000)
app/views/site/_potlatch2.html.erb

index a72975d..6073e0a 100644 (file)
@@ -28,8 +28,8 @@
     fo.addVariable('gpx' ,'<%= h(params['gpx']) %>');
     <% end %>
     fo.addVariable("zoom",zoom);
-    fo.addVariable("api","http://<%= SERVER_URL %>/api/<%= API_VERSION %>/");
-    fo.addVariable("policy","http://<%= SERVER_URL %>/api/crossdomain.xml");
+    fo.addVariable("api","/api/<%= API_VERSION %>/");
+    fo.addVariable("policy","/api/crossdomain.xml");
     fo.addVariable("connection","XML");
     fo.addVariable("oauth_token","<%= token.token %>");
     fo.addVariable("oauth_token_secret","<%= token.secret %>");