correct anon search

This commit is contained in:
Sam 2015-04-04 07:55:32 +11:00
parent 2da0019228
commit 6f63f4fe17
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ function searchForTerm(term, opts) {
};
}
return Discourse.ajax('/search/', { data: data, method: 'POST' }).then(function(results){
return Discourse.ajax('/search/query', { data: data }).then(function(results){
// Topics might not be included
if (!results.topics) { results.topics = []; }
if (!results.users) { results.users = []; }

View File

@ -387,7 +387,7 @@ Discourse::Application.routes.draw do
get "category/*path" => "categories#redirect"
get "top" => "list#top"
post "search" => "search#query"
get "search/query" => "search#query"
# Topics resource
get "t/:id" => "topics#show"