my $feedonly=yesno($params{feedonly});
# Backwards compatibility
- if (defined $params{show} && $params{show} =~ m/^\d+$/) {
+ if (defined $params{show} && $params{show} =~ m/^-?\d+$/) {
$params{limit} = $params{show};
delete $params{show};
}
$v=$baseurl.$v; # anchor
}
elsif ($dv=~/^(?!\w+:)[^\/]/) {
- $v=$url.$v; # relative url
+ $v=URI->new_abs($v, $url)->canonical; # relative url
}
elsif ($dv=~/^\//) {
if (! defined $urltop) {
my $template=template_depends($feedtype."page.tmpl", $page, blind_cache => 1);
$template->param(
+ wants_absolute_urls => 1,
title => $feedtitle,
wikiname => $config{wikiname},
pageurl => $url,