From: Simon McVittie Date: Mon, 22 Nov 2010 23:25:45 +0000 (+0000) Subject: baseurl(): return local path, not absolute URL, if the argument is undef X-Git-Tag: 3.20101231~106^2~10 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/f032bce79158005032c09e4db75093abaca45751?hp=6be4e6d1a501fa10d7894ff46b4a812cddb26d49 baseurl(): return local path, not absolute URL, if the argument is undef --- diff --git a/IkiWiki.pm b/IkiWiki.pm index 41e9e3f82..a4afef8e0 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -1057,7 +1057,7 @@ sub cgiurl (@) { sub baseurl (;$) { my $page=shift; - return "$config{url}/" if ! defined $page; + return $local_url if ! defined $page; $page=htmlpage($page); $page=~s/[^\/]+$//;