In /diff/ and /commit/ endpoints, making the word "diff"
a link to the top of the diff is not very useful and may
be confusing. Avoid wasting bandwidth and overloading
the reader with potential options.
delete $req->{anchors}->{$anchor};
my $cc = $req->{cc} = PublicInbox::Hval->utf8($path);
$req->{path_cc} = $cc->as_path;
- qq(<a\nhref=#D\nid="$anchor">diff</a> --$combined $html_path);
+ qq(<a\nid="$anchor">diff</a> --$combined $html_path);
}
# index abcdef09,01234567..76543210
# not wasting bandwidth on links here
# links in hunk headers are far more useful with line offsets
- qq(<a\nhref=#D\nid="$anchor">diff</a> --git $html_a $html_b);
+ qq(<a\nid="$anchor">diff</a> --git $html_a $html_b);
}
# @@ -1,2 +3,4 @@ (regular diff)