diff --git a/views/views_plugin_style_kml.inc b/views/views_plugin_style_kml.inc
index 3ca12db..5f6e890 100644
--- a/views/views_plugin_style_kml.inc
+++ b/views/views_plugin_style_kml.inc
@@ -25,7 +25,7 @@ class views_plugin_style_kml extends views_plugin_style {
   function attach_to($display_id, $path, $title) {
     $url_options = array('html' => TRUE);
     $image = theme('image', $this->feed_image);
-    $this->view->feed_icon .= l($image, $path, $url_options);
+    $this->view->feed_icon .= l($image, $this->view->get_url(NULL, $path), $url_options);
   }
 
   function option_definition() {
