summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--quicksearch.js2
-rw-r--r--template/en/default/sidebar.xul.tmpl4
2 files changed, 5 insertions, 1 deletions
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;