Ask Your Question
5

Searchbar not working on pages other than questions

asked 2012-09-01 11:19:15 -0500

theactiveactor gravatar image theactiveactor
147 7 2 6

updated 2012-09-01 11:45:35 -0500

todofixthis gravatar image todofixthis flag of Chile
1082 14 17 36
http://www.fiveyearsabroa...

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/
delete close flag offensive retag edit

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 ( 2012-09-04 09:55:04 -0500 )edit

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

Evgeny ( 2012-09-04 09:56:41 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-09-01 11:27:16 -0500

pajju gravatar image pajju flag of India
473 7 8 21
http://ninjaas.com/

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.

link publish delete flag offensive edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow

subscribe to rss feed

Stats

Asked: 2012-09-01 11:19:15 -0500

Seen: 29 times

Last updated: Sep 01 '12