]> git.openstreetmap.org Git - rails.git/commitdiff
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 a72975dd73985e72fc34559d93ab4d2fd04b5e72..6073e0adf446e95c9156e56eaf2b9f92fc5ab200 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 %>");