From: Sebastin Santy Date: Tue, 7 Mar 2017 20:34:03 +0000 (+0530) Subject: Bug 1344769 - Cancel editing button loads BugZilla homepage instead of current bug X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48f4f832fa5863de07b0ed28ca7e005d3df6c23d;p=thirdparty%2Fbugzilla.git Bug 1344769 - Cancel editing button loads BugZilla homepage instead of current bug --- diff --git a/extensions/BugModal/web/bug_modal.js b/extensions/BugModal/web/bug_modal.js index f65c12be3..7a608cbe9 100644 --- a/extensions/BugModal/web/bug_modal.js +++ b/extensions/BugModal/web/bug_modal.js @@ -710,7 +710,7 @@ $(function() { $('#cancel-btn') .click(function(event) { event.preventDefault(); - window.location.replace($('#this-bug').val()); + window.location.replace($('#this-bug').attr('href')); }); // Open help page