]> Sergey Matveev's repositories - public-inbox.git/commitdiff
www_stream: add trailing slash for help and color links
authorEric Wong <e@80x24.org>
Wed, 17 Mar 2021 07:02:14 +0000 (23:02 -0800)
committerEric Wong <e@80x24.org>
Wed, 17 Mar 2021 19:03:11 +0000 (19:03 +0000)
This saves clients a redirect

lib/PublicInbox/WwwStream.pm

index bcf2ececc1f1dd3d54ca4c154d0d52fe5837ac76..1178a3c976615e64a53093055acf41b314218430 100644 (file)
@@ -40,8 +40,8 @@ sub html_top ($) {
        my $desc = ascii_html($ibx->description);
        my $title = delete($ctx->{-title_html}) // $desc;
        my $upfx = $ctx->{-upfx} || '';
-       my $help = $upfx.'_/text/help';
-       my $color = $upfx.'_/text/color';
+       my $help = $upfx.'_/text/help/';
+       my $color = $upfx.'_/text/color/';
        my $atom = $ctx->{-atom} || $upfx.'new.atom';
        my $top = "<b>$desc</b>";
        if (my $t_max = $ctx->{-t_max}) {