Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Searchbar not working on pages other than questions

Is there some Javascript magic I need to do in order to make the search bar work on an arbitrary page derived from "two_column_body.html"?

The issue I'm seeing is that on other pages, when I search for anything, the result always display all questions. I noticed that the GET URL issued is different than when I'm on the questions screen:

Not working: GET /questions/?search=&query=asdf Working: GET /questions/scope:all/sort:activity-desc/query:asdf/page:1/

click to hide/show revision 2
Fixed formatting, re-tagged for visibility.

Searchbar not working on pages other than questions

Is there some Javascript magic I need to do in order to make the search bar work on an arbitrary page derived from "two_column_body.html"?

The issue I'm seeing is that on other pages, when I search for anything, the result always display all questions. I noticed that the GET URL issued is different than when I'm on the questions screen:

  • Not working: GET /questions/?search=&query=asdf /questions/?search=&query=asdf
  • Working: GET /questions/scope:all/sort:activity-desc/query:asdf/page:1/