]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/brokenlinks.pm
* Add getopt hook type, this allows plugins to add new command-line options.
[git.ikiwiki.info.git] / IkiWiki / Plugin / brokenlinks.pm
index deee582220799b70c8f0b87e74859a71c9eb6783..3406f991978d1e707c8f33c46cdd20db419447ab 100644 (file)
@@ -27,9 +27,9 @@ sub preprocess (@) { #{{{
                                my $bestlink=IkiWiki::bestlink($page, $link);
                                next if length $bestlink;
                                push @broken,
-                                       IkiWiki::htmllink($page, $page, $link, 1).
+                                       IkiWiki::htmllink($page, $params{destpage}, $link, 1).
                                        " in ".
-                                       IkiWiki::htmllink($params{page}, $params{page}, $page, 1);
+                                       IkiWiki::htmllink($params{page}, $params{destpage}, $page, 1);
                        }
                }
        }