about summary refs log tree commit homepage
path: root/lib/PublicInbox/WwwStream.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-08-28 11:50:07 +0000
committerEric Wong <e@80x24.org>2021-08-30 22:44:13 +0000
commitd7c052507561d121a46f952ec8f700beb3c3a33a (patch)
tree80dc191b292325754c7f9bb23fba5bd93e46d440 /lib/PublicInbox/WwwStream.pm
parent5b96edcb1e0d825244d5a12470e0f32526262611 (diff)
downloadpublic-inbox-d7c052507561d121a46f952ec8f700beb3c3a33a.tar.gz
Making the inbox description link back to the most recent
per-inbox topics from text/ and $OID/s/ URLs seems useful,
rather than keeping the description up there.

Followup-to: 6c853f5256f3a324 ("www: improve navigation around contemporary threads")
Diffstat (limited to 'lib/PublicInbox/WwwStream.pm')
-rw-r--r--lib/PublicInbox/WwwStream.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/PublicInbox/WwwStream.pm b/lib/PublicInbox/WwwStream.pm
index c960edc5..472316c2 100644
--- a/lib/PublicInbox/WwwStream.pm
+++ b/lib/PublicInbox/WwwStream.pm
@@ -49,6 +49,8 @@ sub html_top ($) {
         # we had some kind of query, link to /$INBOX/?t=YYYYMMDDhhmmss
         } elsif ($ctx->{qp}->{t}) {
                 $top = qq(<a\nhref="./">$top</a>);
+        } elsif (length($upfx)) {
+                $top = qq(<a\nhref="$upfx">$top</a>);
         }
         my $code = $ibx->{coderepo} ? qq( / <a\nhref=#code>code</a>) : '';
         # id=mirror must exist for legacy bookmarks