aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authordeuxpi <deuxpi@web>2012-08-02 16:43:26 -0400
committeradmin <admin@branchable.com>2012-08-02 16:43:26 -0400
commitd612589fe0d81d9e06b9905c0cd772d8e3afd44f (patch)
tree11f79a322fe8dd838ff32c6206bf6d6232afad53 /doc
parent7d834ff23d992f5848b0ef0b540d59070532b07f (diff)
downloadikiwiki-d612589fe0d81d9e06b9905c0cd772d8e3afd44f.tar
ikiwiki-d612589fe0d81d9e06b9905c0cd772d8e3afd44f.tar.gz
Proposed patch for plugins/osm
Diffstat (limited to 'doc')
-rw-r--r--doc/bugs/osm_linkto__40____41___usage_breaks_map_rendering.mdwn8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/bugs/osm_linkto__40____41___usage_breaks_map_rendering.mdwn b/doc/bugs/osm_linkto__40____41___usage_breaks_map_rendering.mdwn
index 01d1ec8bc..0c88cd7f0 100644
--- a/doc/bugs/osm_linkto__40____41___usage_breaks_map_rendering.mdwn
+++ b/doc/bugs/osm_linkto__40____41___usage_breaks_map_rendering.mdwn
@@ -3,3 +3,11 @@ Under some circumstances that remain unclear to me, the usage of `urlto()` in th
GET http://mesh.openisp.ca/map/pois.kml/ 404 (Not Found)
Indeed, that URL yields a 404. The proper URL is <http://mesh.openisp.ca/map/pois.kml>. --[[anarcat]]
+
+## Proposed solution
+
+The problem seems to be caused by `urlto()` being called for the `osm` directive before the generated files are registered with `will_render()` from the `waypoint` directive. Proposed patch adds a function that is called from the `preprocess` hook for both directives that registers the files.
+
+[Patch to IkiWiki/Plugin/osm.pm](https://reseaulibre.deuxpi.ca/0000-Fix-incorrect-URL-pointing-to-the-generated-waypoint.patch)
+
+--[[deuxpi]]