aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>2009-06-18 15:32:55 +0100
committerJoey Hess <joey@gnu.kitenet.net>2009-08-15 13:50:55 -0400
commit97e9d99358a04ef0623e57e82e6a61d42b3f2a99 (patch)
treedbf769a8af5f0186390b9937502937b1f767748f /IkiWiki
parente0bb9675ce349c02fce1e835b5aaa6601d4254d2 (diff)
downloadikiwiki-97e9d99358a04ef0623e57e82e6a61d42b3f2a99.tar
ikiwiki-97e9d99358a04ef0623e57e82e6a61d42b3f2a99.tar.gz
meta: depend on absolute page name, not relative
Previously, [[!meta redir="foo"]] on bar, where bar/foo exists, would depend on "foo" (which matches nothing, probably) rather than "bar/foo". (cherry picked from commit f27ec09b72f886415e63fe394e18d9c3cb3913bf)
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/meta.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/meta.pm b/IkiWiki/Plugin/meta.pm
index b2295923e..514b09369 100644
--- a/IkiWiki/Plugin/meta.pm
+++ b/IkiWiki/Plugin/meta.pm
@@ -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;