From: justdave%syndicomm.com <> Date: Sun, 12 Jan 2003 16:16:03 +0000 (+0000) Subject: Bug 153874: Query in sidebar wasn't working X-Git-Tag: bugzilla-2.17.4~121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aeec598412d3b247c9155cf97834dea503bd136c;p=thirdparty%2Fbugzilla.git Bug 153874: Query in sidebar wasn't working Patch by Peter Henderson (peterhenderson@usa.net) r= kiko, a= justdave --- diff --git a/quicksearch.js b/quicksearch.js index ff43a5f1db..1eb6270736 100644 --- a/quicksearch.js +++ b/quicksearch.js @@ -47,7 +47,7 @@ function do_shift(l) { function go_to (url) { if ( typeof sidebar != "undefined" && sidebar == 1 ) { - load_relative_url(url); + load_absolute_url(url); } else { document.location.href = url; } diff --git a/template/en/default/sidebar.xul.tmpl b/template/en/default/sidebar.xul.tmpl index 21a07c9988..ad530cbb78 100644 --- a/template/en/default/sidebar.xul.tmpl +++ b/template/en/default/sidebar.xul.tmpl @@ -39,6 +39,10 @@ // Tell QuickSearch that the source of this is the sidebar var sidebar = 1; +function load_absolute_url( aAbsoluteURL ) { + _content.location = aAbsoluteURL; +} + function load_relative_url( aRelativeURL ) { aRelativeURL = '[% Param('urlbase') %]' + aRelativeURL; _content.location = aRelativeURL;