]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki.pm
baseurl(): return local path, not absolute URL, if the argument is undef
[ikiwiki.git] / IkiWiki.pm
index 41e9e3f82d3cc89f44b953c8b3a47def74758fb4..a4afef8e0381f337d9cf8c26fe961210a2f5aaf0 100644 (file)
@@ -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/[^\/]+$//;