summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2010-12-25 22:12:38 +0000
committerSimon McVittie <smcv@debian.org>2010-12-25 22:54:54 +0000
commitd4704d8bbb35f150b4cd354c196822da738d9519 (patch)
tree971e9b8a4b3588c62c508b80399ae5bc69cf4e20
parent524a78eaca2bb7bbf06b96797f3e9a4fd6efa4de (diff)
urlto: simplify the to='' special case to allow it to be made absolute
-rw-r--r--IkiWiki.pm2
1 files changed, 1 insertions, 1 deletions
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}) {