]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/map_does_not_link_directory_for_which_a_file_also_exists.mdwn
close
[ikiwiki.git] / doc / bugs / map_does_not_link_directory_for_which_a_file_also_exists.mdwn
1 [[!meta title="map does not link entries which are equal to basename(current_page)"]]
2
3 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.
4
5 [[done]] --[[Joey]]
6
7 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...
8
9 --[[madduck]]
10
11 That's a different issue. :-)
12
13 This is really subtle and tricky. It's doing this because it
14 thinks that tag/factors/contribute _does_ link to a page
15 matching "tag/factors/*". That page? tag/factors/contribute/discussion!
16
17 Now, tag/factors/contribute/discussion doesn't exist yet in your wiki,
18 but there is a "?Discussion" pseudo-link, and that's good enough for
19 ikiwiki.
20
21 So, you could work around this annoying behavior with
22 !link(tag/factors/*/Discussion)
23
24 BTW, the testpagespec plugin is useful in debugging these kind of things.
25
26 --[[Joey]]