User login

Search from a Drupal 404 File not found page

Search from 404 page does not work
http://drupal.org/node/292565

Oh wow, it's finally been fixed!!! As of yesterday!

Commit to Drupal 6 core announced in comment #67 of the above issue thread.

No need to see if the Blocks 404 module fixes it (but the module is cool too)
http://drupal.org/project/blocks404

Now one thing to do would be to pre-fill the search terms from the URL in a search box, but not search instantly, as a compromise between the convenience and the server resources cost of the Search404 module...

Resolution

Searched words: 
drupal search does not work on 404 not found page

Comments

Thank you for the concise

Thank you for the concise update, much appreciated.

Search404 module

Check out the search 404 module as well. That could automatically perform a search (or just show keywords in search box) as required.

Sorry didn't see the

Sorry didn't see the reference to search404 in the last line. Actually search404 has an option to not perform the search and just show the search terms pre-populated.

That is good enough performance for me

but in the case of this project we are looking to have 404 pages being completely cached, not simply avoiding the additional database search. To do that the words need to be added to the form by JavaScript, on top of a cached HTML+CSS page, rather than rendered with the page.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.