lib/PublicInbox/View.pm | 2 +- t/plack.t | 3 ++- diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 2e5228e1c9609df75e8d3bba7f8c61c2035db5c3..11a94ba938636ce28bd8d5373d5e2b3d50c811c6 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -678,7 +678,7 @@ $ctx->{first_hdr} = $eml->header_obj; $ctx->{chash} = content_hash($eml) if $ctx->{smsg}; # reused MID $rv .= ""; # anchor for body start } - $ctx->{-upfx} = '../' if $have_over; + $ctx->{-upfx} = '../'; my @title; # (Subject[0], From[0]) for my $v ($eml->header('From')) { my @n = PublicInbox::Address::names($v); diff --git a/t/plack.t b/t/plack.t index 32209c7d343ac8335837dbbbb3c7ad4ca2dd0d64..3ba2e6fb866c99c3769832da03b73e1287d6092c 100644 --- a/t/plack.t +++ b/t/plack.t @@ -1,5 +1,5 @@ #!perl -w -# Copyright (C) 2014-2021 all contributors +# Copyright (C) all contributors # License: AGPL-3.0+ use strict; use v5.10.1; @@ -154,6 +154,7 @@ my $path = '/blah@example.com/'; $res = $cb->(GET($pfx . $path)); is(200, $res->code, "success for $path"); my $html = $res->content; + like($html, qr!\bhref="\Q../_/text/help/"!, 'help available'); like($html, qr!hihi - Me!, 'HTML returned'); like($html, qr!