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-Url: http://git.tremily.us/?a=commitdiff_plain;h=f032bce79158005032c09e4db75093abaca45751;p=ikiwiki.git 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/[^\/]+$//;