]> sipb.mit.edu Git - ikiwiki.git/commitdiff
urlto: simplify the to='' special case to allow it to be made absolute
authorSimon McVittie <smcv@debian.org>
Sat, 25 Dec 2010 22:12:38 +0000 (22:12 +0000)
committerSimon McVittie <smcv@debian.org>
Sat, 25 Dec 2010 22:54:54 +0000 (22:54 +0000)
IkiWiki.pm

index 93d2c326d300209cf8f6af51905ec34bccd80b64..bbe1ad055b2935437c9d0ee6ccf76f8f51d6bf3d 100644 (file)
@@ -1140,7 +1140,7 @@ sub urlto ($;$$) {
        my $absolute=shift;
        
        if (! length $to) {
        my $absolute=shift;
        
        if (! length $to) {
-               return beautify_urlpath(baseurl($from)."index.$config{htmlext}");
+               $to = 'index';
        }
 
        if (! $destsources{$to}) {
        }
 
        if (! $destsources{$to}) {