From 651a42b9c2c70ae5fe9f664d04067c8d51ef10bf Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Sat, 5 Aug 2006 01:21:40 +0000 Subject: #67648 by craines and pwolanin, always go to search pages for searching (particularly a problem on 404 pages) --- modules/search/search.module | 3 +++ 1 file changed, 3 insertions(+) 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'); } -- cgit v1.2.3