diff --git a/includes/openlayers.render.inc b/includes/openlayers.render.inc index a2aa40c..bd7d52f 100644 --- a/includes/openlayers.render.inc +++ b/includes/openlayers.render.inc @@ -215,8 +215,8 @@ function _openlayers_create_map_id() { * Processed path. */ function openlayers_style_path($path) { - $path = url($path, array('absolute' => TRUE)); - $path = str_replace('%24%7B', '${', $path); - $path = str_replace('%7D', '}', $path); - return $path; + $path = file_create_url($path); + $path = str_replace('%24%7B', '${', $path); + $path = str_replace('%7D', '}', $path); + return $path; }