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)master
parent
e0bb9675ce
commit
97e9d99358
|
@ -191,11 +191,11 @@ sub preprocess (@) {
|
||||||
if ($value !~ /^\w+:\/\//) {
|
if ($value !~ /^\w+:\/\//) {
|
||||||
my ($redir_page, $redir_anchor) = split /\#/, $value;
|
my ($redir_page, $redir_anchor) = split /\#/, $value;
|
||||||
|
|
||||||
add_depends($page, $redir_page);
|
|
||||||
my $link=bestlink($page, $redir_page);
|
my $link=bestlink($page, $redir_page);
|
||||||
if (! length $link) {
|
if (! length $link) {
|
||||||
error gettext("redir page not found")
|
error gettext("redir page not found")
|
||||||
}
|
}
|
||||||
|
add_depends($page, $link);
|
||||||
|
|
||||||
$value=urlto($link, $page);
|
$value=urlto($link, $page);
|
||||||
$value.='#'.$redir_anchor if defined $redir_anchor;
|
$value.='#'.$redir_anchor if defined $redir_anchor;
|
||||||
|
|
Loading…
Reference in New Issue