From aeec598412d3b247c9155cf97834dea503bd136c Mon Sep 17 00:00:00 2001 From: "justdave%syndicomm.com" <> Date: Sun, 12 Jan 2003 16:16:03 +0000 Subject: Bug 153874: Query in sidebar wasn't working Patch by Peter Henderson (peterhenderson@usa.net) r= kiko, a= justdave --- quicksearch.js | 2 +- template/en/default/sidebar.xul.tmpl | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/quicksearch.js b/quicksearch.js index ff43a5f1d..1eb627073 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 21a07c998..ad530cbb7 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; -- cgit v1.2.3-24-g4f1b