From 26553fa96a7b35d44f133087cfb0dc2bef146662 Mon Sep 17 00:00:00 2001 From: Brian Rosmaita Date: Tue, 24 Apr 2018 16:38:41 -0400 Subject: [PATCH] Relocate bug_tag in logABug generated URL The content of field.comment may contain characters that confuse Launchpad and block it from recognizing field.tags, so move the location of the tags specification to earlier in the URL. Change-Id: I62ce0a93ca963fe412f17e56aab743ac9c3deb98 Closes-bug: #1766705 --- openstackdocstheme/theme/openstackdocs/static/js/docs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openstackdocstheme/theme/openstackdocs/static/js/docs.js b/openstackdocstheme/theme/openstackdocs/static/js/docs.js index a729125..b0a74ec 100644 --- a/openstackdocstheme/theme/openstackdocs/static/js/docs.js +++ b/openstackdocstheme/theme/openstackdocs/static/js/docs.js @@ -129,10 +129,10 @@ function logABug(bugTitle, bugProject, fieldComment, fieldTags) { bugLink = urlBase + bugProject; } else { bugLink = urlBase + encodeURIComponent(bugTitle) + + "&field.tags=" + fieldTags + "&field.comment=" + lineFeed + lineFeed + lineFeed + bugChecklist + lineFeed + "-----------------------------------" + lineFeed + fieldComment + - lineFeed + currentURL + - "&field.tags=" + fieldTags; + lineFeed + currentURL; } document.getElementById("logABugLink1").href=bugLink; document.getElementById("logABugLink2").href=bugLink;