]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/bugs/map_does_not_link_directory_for_which_a_file_also_exists.mdwn
(no commit message)
[ikiwiki.git] / doc / bugs / map_does_not_link_directory_for_which_a_file_also_exists.mdwn
index 0f437e81b13a8ebc02452b10b38d15f155ea21fc..d197cdb6c41da17e4e3091b7ff8c56e0c87c659e 100644 (file)
@@ -1,7 +1,26 @@
-[[meta title="map does not link entries which are equal to basename(current_page)"]]
+[[!meta title="map does not link entries which are equal to basename(current_page)"]]
 
 On <http://phd.martin-krafft.net/wiki/tag/factors/>, the top-level `factors` entry is not linked to the corresponding page. Looking at <http://phd.martin-krafft.net/wiki/tag/factors/language/>, this must be because the page name is the same as the entry name, and ikiwiki probably doesn't take the complete path of subpages into account.
 
-[[notfixed|notdone]] --[[Joey]]
+[[done]] --[[Joey]]
 
-I can confirm that most if the issues are fixed, but if you look at the "tagged pages" map at <http://phd.martin-krafft.net/wiki/tag/factors/> again, you'll notice that map still includes and links to pages that do not match the pagespec. The list includes entries like `tag/factors/contribute`, but that page does *not* link/is not tagged with any `factors*` tag. --[[madduck]]
\ No newline at end of file
+I can confirm that most if the issues are fixed, but map still includes and links to pages that do not match the pagespec. The list includes entries like `tag/factors/contribute`, but that page does *not* link/is not tagged with any `factors*` tag. I have put a snapshot of the site as it was when I saw this bug at <http://scratch.madduck.net/web__phd.martin-krafft.net__map-bug-1.tgz> and can return to the state at any time, but I needed to move on now...
+
+--[[madduck]]
+
+That's a different issue. :-)
+
+This is really subtle and tricky. It's doing this because it
+thinks that tag/factors/contribute _does_ link to a page
+matching "tag/factors/*". That page? tag/factors/contribute/discussion!
+
+Now, tag/factors/contribute/discussion doesn't exist yet in your wiki,
+but there is a "?Discussion" pseudo-link, and that's good enough for
+ikiwiki.
+
+So, you could work around this annoying behavior with
+!link(tag/factors/*/Discussion)
+
+BTW, the testpagespec plugin is useful in debugging these kind of things.
+
+--[[Joey]]