lib/PublicInbox/View.pm | 11 +++++++++--
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 3d6348c71850e308b95ad61f275dbc9c37cc757b..49068641cf17f7a0aae9c5e39f800fb505530852 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -905,11 +905,18 @@ $ts = fmt_ts($ts);
# $n isn't the total number of posts on the topic,
# just the number of posts in the current results window
- $n = $n == 1 ? '' : " ($n+ messages)";
+ my $anchor;
+ if ($n == 1) {
+ $n = '';
+ $anchor = '#u'; # top of only message
+ } else {
+ $n = " ($n+ messages)";
+ $anchor = '#t'; # thread skeleton
+ }
my $mbox = qq(mbox.gz);
my $atom = qq(Atom);
- my $s = "$top\n" .
+ my $s = "$top\n" .
" $ts UTC $n - $mbox / $atom\n";
for (my $i = 0; $i < scalar(@ex); $i += 2) {
my $level = $ex[$i];