diff --git a/www/index.pl b/www/index.pl index abb1f24..fbec00f 100755 --- a/www/index.pl +++ b/www/index.pl @@ -811,6 +811,12 @@ sub man_page { return; } + # Prefix links to other man pages with the current system, to ensure we + # grab the most relevant man page. + # XXX: This is a hack, prefixing is better done directly in ManUtils. + my $sys = sysbyid->{$man->{system}}{short}; + $fmt =~ s{([^<\n]+?)<\/b>\n}{ push @toc, $1;