]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki.pm
Corrected a fuzzy. Changed some error message translation to use ": %s"
[git.ikiwiki.info.git] / IkiWiki.pm
index 2ee27ac3e7cf1fa6ac5d38a6a4917fd9eb00c770..8f7d8d20b4f22381e18cb556249a64ccb3887b8b 100644 (file)
@@ -319,6 +319,10 @@ sub bestlink ($$) { #{{{
                }
        } while $cwd=~s!/?[^/]+$!!;
 
+       if (length $config{userdir} && exists $links{"$config{userdir}/".lc($link)}) {
+               return "$config{userdir}/".lc($link);
+       }
+
        #print STDERR "warning: page $page, broken link: $link\n";
        return "";
 } #}}}