From fd898f2e5769ae58b386cd09f01de86b3eda9622 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 10 Dec 2010 13:32:06 +0000 Subject: [PATCH] Use relative URLs rather than hard coding the server name --- app/views/site/_potlatch2.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/site/_potlatch2.html.erb b/app/views/site/_potlatch2.html.erb index a72975dd7..6073e0adf 100644 --- a/app/views/site/_potlatch2.html.erb +++ b/app/views/site/_potlatch2.html.erb @@ -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 %>"); -- 2.43.2