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-Url: http://git.tremily.us/?p=ikiwiki.git;a=commitdiff_plain;h=d4704d8bbb35f150b4cd354c196822da738d9519 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}) {