]> Sergey Matveev's repositories - public-inbox.git/commitdiff
view: "thread" in per-message view goes back to /t/
authorEric Wong <e@80x24.org>
Wed, 30 Dec 2015 22:31:49 +0000 (22:31 +0000)
committerEric Wong <e@80x24.org>
Wed, 30 Dec 2015 22:31:49 +0000 (22:31 +0000)
Linking to the expanded thread page probably makes more sense
as it avoid unnecessary scanning for the thread summary.

lib/PublicInbox/View.pm

index ad03cfe22efbc874e045bcff8d97dc362296ad3b..204004709474d914e6cca17adc09e3e0f74f70cb 100644 (file)
@@ -580,7 +580,8 @@ sub html_footer {
                        $irt .= ' ' x length('next ');
                }
                if ($p || $next) {
-                       $irt .= "<a\nhref=\"#r\">thread</a> ";
+                       my $tpfx = $full_pfx ? '' : '../';
+                       $irt .= "<a\nhref=\"${tpfx}t/#u\">thread</a> ";
                } else {
                        $irt .= ' ' x length('thread ');
                }