fix(gerrit): return HTML titles in more cases
At present, we don't return HTML titles if there's a trailing slash, or a patchset. Instead, just consume the / and anything after it. This also fixes /123, because this is HTTP redirected to the full path *with a trailing slash* which otherwise wouldn't get the title injected. Change-Id: Idfd0e67752880a37dce0b400a3c1cfc53fac2912 Reviewed-on: https://cl.tvl.fyi/c/depot/+/859 Reviewed-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in> Tested-by: BuildkiteCI
This commit is contained in:
parent
26bb34823d
commit
3f6518ce99
5 changed files with 64 additions and 11 deletions
8
third_party/gerrit/default.nix
vendored
8
third_party/gerrit/default.nix
vendored
|
|
@ -40,10 +40,10 @@ pkgs.buildBazelPackage {
|
|||
fetchSubmodules = true;
|
||||
};
|
||||
patches = [
|
||||
./use_detzip.patch
|
||||
./syntax_highlight_nix.patch
|
||||
./syntax_highlight_rules_pl.patch
|
||||
./add_titles_to_cls.patch
|
||||
./0001-Use-detzip-in-download_bower.py.patch
|
||||
./0002-Syntax-highlight-nix.patch
|
||||
./0003-Syntax-highlight-rules.pl.patch
|
||||
./0004-Add-titles-to-CLs-over-HTTP.patch
|
||||
];
|
||||
|
||||
bazelTarget = "release";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue