From: joey Date: Fri, 24 Mar 2006 05:44:07 +0000 (+0000) Subject: Take basename of page link when creating a link. Makes blog posts look X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/1ae3a0dda5c54704ad16dd4753119a1b9d4f309a Take basename of page link when creating a link. Makes blog posts look better and I think it's ok. --- 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;