Take basename of page link when creating a link. Makes blog posts look

better and I think it's ok.
master
joey 2006-03-24 05:44:07 +00:00
parent 0ce894d18c
commit 1ae3a0dda5
1 changed files with 1 additions and 1 deletions

View File

@ -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;