From: Simon McVittie Date: Sat, 25 Dec 2010 22:12:38 +0000 (+0000) Subject: urlto: simplify the to='' special case to allow it to be made absolute X-Git-Tag: 3.20101231~28^2~3 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/d4704d8bbb35f150b4cd354c196822da738d9519?ds=sidebyside urlto: simplify the to='' special case to allow it to be made absolute --- diff --git a/IkiWiki.pm b/IkiWiki.pm index 93d2c326d..bbe1ad055 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -1140,7 +1140,7 @@ sub urlto ($;$$) { my $absolute=shift; if (! length $to) { - return beautify_urlpath(baseurl($from)."index.$config{htmlext}"); + $to = 'index'; } if (! $destsources{$to}) {