summaryrefslogtreecommitdiff
path: root/ikiwiki
diff options
context:
space:
mode:
Diffstat (limited to 'ikiwiki')
-rwxr-xr-xikiwiki2
1 files changed, 1 insertions, 1 deletions
diff --git a/ikiwiki b/ikiwiki
index 1451cb8aa..235a72102 100755
--- a/ikiwiki
+++ b/ikiwiki
@@ -262,7 +262,7 @@ sub htmllink ($$;$$) { #{{{
$bestlink="$page/".lc($link);
}
- my $linktext=pagetitle($link);
+ my $linktext=pagetitle(basename($link));
return $linktext if length $bestlink && $page eq $bestlink;