From: Joey Hess <joey@kitenet.net>
Date: Sun, 18 Mar 2012 21:48:09 +0000 (-0400)
Subject: fix waypoint hrefs
X-Git-Tag: 3.20120203~10
X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/b2471aa729388243e598d389044d14fe86d5a7d5

fix waypoint hrefs
---

diff --git a/IkiWiki/Plugin/osm.pm b/IkiWiki/Plugin/osm.pm
index ef6bc5b11..511fe3c9b 100644
--- a/IkiWiki/Plugin/osm.pm
+++ b/IkiWiki/Plugin/osm.pm
@@ -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'})) {