Drupal 5 Search not working on 404 pages.
Posted
by easement
on Stack Overflow
See other posts from Stack Overflow
or by easement
Published on 2010-03-17T17:30:27Z
Indexed on
2010/03/18
8:41 UTC
Read the original article
Hit count: 361
I have a <?php print $search_box; ?>
in my page.tpl.php page. On pages that exist, the search works, but on 404 pages, it does not.
I saw some bugs/patches threads over at drupal.org for D6.15, but none of them seem to work according to the thread and they weren't really relevant to D5.x
I have a theory that the because the <?php print $search_box; ?>
creates a form with an action to itself(a non-existant page), it'll get the 404.
Has anyone run up against this? If so, how did you fix it?
One theory I has was to somehow tap into the form and always make the action="/" (front page) which would always exist.
If this is a good idea, how does one go about tapping into the FormAPI and overwriting the action? Is it a preprocess function?
© Stack Overflow or respective owner