Root the Change-Id and commit commentlinks
Gerrit's query redirects have changed slightly since 2.8, and it's possible to end up browsing with a URL like https://hostname// which causes relative-path links such as the Change-ID or commit SHA commentlinks to 404. Prepend a leading / to the commentlink for this and avoid the issue. Change-Id: I09f0b491e2f54ab10d29f456cd026d90b673447f
This commit is contained in:
parent
7650285a08
commit
4ff68334b2
@ -173,12 +173,12 @@ class openstack_project::gerrit (
|
||||
{
|
||||
name => 'changeid',
|
||||
match => '(I[0-9a-f]{8,40})',
|
||||
link => '#q,$1,n,z',
|
||||
link => '/#q,$1,n,z',
|
||||
},
|
||||
{
|
||||
name => 'gitsha',
|
||||
match => '(<p>|[\\s(])([0-9a-f]{40})(</p>|[\\s.,;:)])',
|
||||
html => '$1<a href=\"#q,$2,n,z\">$2</a>$3',
|
||||
html => '$1<a href=\"/#q,$2,n,z\">$2</a>$3',
|
||||
},
|
||||
],
|
||||
trackingids => [
|
||||
|
Loading…
x
Reference in New Issue
Block a user