uh oh, this affects link deps
[ikiwiki] / doc / bugs / bestlink_change_update_issue.mdwn
1 * Has bugs updating things if the bestlink of a page changes due to
2   adding/removing a page. For example, if Foo/Bar links to "Baz", which is
3   Foo/Baz, and Foo/Bar/Baz gets added, it will update the links in Foo/Bar
4   to point to it, but will forget to update the backlinks in Foo/Baz.
5
6 * And if Foo/Bar/Baz is then removed, Foo/Bar gets a broken link,
7   instead of changing back to linking to Foo/Baz.
8
9 This old bug still exists as of 031d1bf5046ab77c796477a19967e7c0c512c417.
10 and now this same problem also affects link dependencies.
11
12 (Some of) The buggy code is in `find_changed_links`
13 which doesn't detect that the link has changed in
14 this case, because when it looks at where the `%oldlinks` link to,
15 it does so after having updated state to add/remove the page.