diff --git a/staticmap.module b/staticmap.module
index 267aa47..3712681 100644
--- a/staticmap.module
+++ b/staticmap.module
@@ -167,7 +167,7 @@ function staticmap_field_formatter_view($entity_type, $entity, $field, $instance
         $parameters = $provider->build_params($geodata, $settings);
 
         $element[0] = array(
-          '#markup' => theme('staticmap_map', array('path' => $provider->api_uri . http_build_query($parameters))),
+          '#markup' => theme('staticmap_map', array('path' => url($provider->api_uri, array('query' => $parameters, 'absolute' => 'TRUE')))),
         );
       }
       else {
