diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-08-05 01:21:40 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-08-05 01:21:40 +0000 |
commit | 651a42b9c2c70ae5fe9f664d04067c8d51ef10bf (patch) | |
tree | 94fbb140221623098641f1b0e03e5ec78d56ad94 /modules | |
parent | cd430165d706c6a747f81e663f756e60a4a0377f (diff) | |
download | brdo-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.module | 3 |
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'); } |