fix waypoint hrefs
authorJoey Hess <joey@kitenet.net>
Sun, 18 Mar 2012 21:48:09 +0000 (17:48 -0400)
committerJoey Hess <joey@kitenet.net>
Sun, 18 Mar 2012 21:48:57 +0000 (17:48 -0400)
IkiWiki/Plugin/osm.pm

index ef6bc5b11d313940ddee503d047594da39b1c1a7..511fe3c9b322d912938b29ee6b9fe946063d2495 100644 (file)
@@ -191,10 +191,11 @@ sub process_waypoint {
                tag => $tag,
                lat => $lat,
                lon => $lon,
-               # how to link back to the page from the map, not to be
+               # How to link back to the page from the map, not to be
                # confused with the URL of the map itself sent to the
-               # embeded map below
-               href => urlto($page,$map),
+               # embeded map below. Note: used in generated KML etc file,
+               # so must be absolute.
+               href => urlto($page),
        };
        my $output = '';
        if (defined($params{'embed'})) {