From d7c052507561d121a46f952ec8f700beb3c3a33a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 28 Aug 2021 11:50:07 +0000 Subject: [PATCH] www_stream: description header links to top $INBOX_URL 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") --- lib/PublicInbox/WwwStream.pm | 2 ++ 1 file changed, 2 insertions(+) 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($top); + } elsif (length($upfx)) { + $top = qq($top); } my $code = $ibx->{coderepo} ? qq( / code) : ''; # id=mirror must exist for legacy bookmarks -- 2.44.0