aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki.pm
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r--IkiWiki.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm
index 2ee27ac3e..960d4da99 100644
--- a/IkiWiki.pm
+++ b/IkiWiki.pm
@@ -319,6 +319,10 @@ sub bestlink ($$) { #{{{
}
} while $cwd=~s!/?[^/]+$!!;
+ if (length $config{userdir} && exists $links{"$config{userdir}/".lc($link)}) {
+ return $links{"$config{userdir}/".lc($link)};
+ }
+
#print STDERR "warning: page $page, broken link: $link\n";
return "";
} #}}}