]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/meta.pm
Merge commit 'remotes/smcv/ready/remove-pagespec-merge'
[git.ikiwiki.info.git] / IkiWiki / Plugin / meta.pm
index b2295923e31d94ed8d393a09d1ebeb2f05604878..514b0936907ce58edabcbafcb44d5559a154eec9 100644 (file)
@@ -191,11 +191,11 @@ sub preprocess (@) {
                if ($value !~ /^\w+:\/\//) {
                        my ($redir_page, $redir_anchor) = split /\#/, $value;
 
-                       add_depends($page, $redir_page);
                        my $link=bestlink($page, $redir_page);
                        if (! length $link) {
                                error gettext("redir page not found")
                        }
+                       add_depends($page, $link);
 
                        $value=urlto($link, $page);
                        $value.='#'.$redir_anchor if defined $redir_anchor;