1 If a page has a discussion page, which is then removed, ikiwiki seems not
2 to notice that the discussion page has gone away, and does not update the
3 link to it in the action bar.
5 > Reprocued with 2.5 --[[Joey]]
7 Looks to me like loadindex is populating %destsources with information
8 that the old discussion page exists, which isn't invalidated when ikiwiki
9 discovers that the page is gone. This leaves dangling links whenever *any*
10 page is deleted, not just a discussion page. --Ethan
12 Here's a patch that trawls through %destsources deleting pages when they
13 are found to be deleted. It's a little inelegant, but it's simple and it
17 diff -urX ignorepats ikiwiki/IkiWiki/Render.pm ikidev/IkiWiki/Render.pm
18 --- ikiwiki/IkiWiki/Render.pm 2007-07-25 15:58:24.501068000 -0700
19 +++ ikidev/IkiWiki/Render.pm 2007-07-25 20:08:32.966449000 -0700
21 prune($config{destdir}."/".$_)
22 foreach @{$oldrenderedfiles{$page}};
23 delete $pagesources{$page};
24 + foreach (keys %destsources){
25 + if ($destsources{$_} == $page) {
26 + delete $destsources{$_};