summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/CGI.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm
index d00de740a..9b5ee6c19 100644
--- a/IkiWiki/CGI.pm
+++ b/IkiWiki/CGI.pm
@@ -666,7 +666,9 @@ sub userlink ($) { #{{{
return "<a href=\"$user\">".escapeHTML($display)."</a>";
}
else {
- return htmllink("", "", escapeHTML($user), 1);
+ return htmllink("", "", escapeHTML(
+ length $config{userdir} ? $config{userdir}."/".$user : $user
+ ), 1);
}
} #}}}