First time here? Check out the FAQ!
5

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/

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
theactiveactor's avatar
167
theactiveactor
asked 12 years ago
todofixthis's avatar
1.3k
todofixthis
updated 12 years ago

Comments

Problem looks like missing interaction with live_search.js, which rewrites the request url. Could someone please give a primer on how we're supposed to configure this script to get search working on an arbitrary page?

theactiveactor's avatar theactiveactor (12 years ago)

I think we should just do a non-js search in those cases - using traditional form submit with "GET" method.

Evgeny's avatar Evgeny (12 years ago)
see more comments

1 Answer

0

Yes this is an issue in the current Askbot site.

I don't know how the Search Behavior is defined for searches inside a Question.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
pajju's avatar
565
pajju
answered 12 years ago
link

Comments

see more comments