From 4ff68334b21e221a315f3ed3c99318e0030696a9 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Mon, 11 May 2015 15:46:41 +0000 Subject: [PATCH] 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 --- modules/openstack_project/manifests/gerrit.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/openstack_project/manifests/gerrit.pp b/modules/openstack_project/manifests/gerrit.pp index 4d94fa4eeb..b47d24b7a1 100644 --- a/modules/openstack_project/manifests/gerrit.pp +++ b/modules/openstack_project/manifests/gerrit.pp @@ -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 => '(

|[\\s(])([0-9a-f]{40})(

|[\\s.,;:)])', - html => '$1$2$3', + html => '$1$2$3', }, ], trackingids => [