summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-08-05 01:21:40 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-08-05 01:21:40 +0000
commit651a42b9c2c70ae5fe9f664d04067c8d51ef10bf (patch)
tree94fbb140221623098641f1b0e03e5ec78d56ad94 /modules
parentcd430165d706c6a747f81e663f756e60a4a0377f (diff)
downloadbrdo-651a42b9c2c70ae5fe9f664d04067c8d51ef10bf.tar.gz
brdo-651a42b9c2c70ae5fe9f664d04067c8d51ef10bf.tar.bz2
#67648 by craines and pwolanin, always go to search pages for searching (particularly a problem on 404 pages)
Diffstat (limited to 'modules')
-rw-r--r--modules/search/search.module3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/search/search.module b/modules/search/search.module
index 566c2c4db..e2cb53e49 100644
--- a/modules/search/search.module
+++ b/modules/search/search.module
@@ -1044,6 +1044,9 @@ function search_box($form_id = 'search_theme_form') {
'#attributes' => array('title' => t('Enter the terms you wish to search for.')),
);
$form['submit'] = array('#type' => 'submit', '#value' => t('Search'));
+ // Always go to the search page since the search form is not guaranteed to be
+ // on every page.
+ $form['#action'] = url('search/node');
return drupal_get_form($form_id, $form, 'search_box_form');
}