mirror of
https://github.com/discourse/discourse.git
synced 2025-06-22 01:14:06 +08:00
correct anon search
This commit is contained in:
@ -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
|
// Topics might not be included
|
||||||
if (!results.topics) { results.topics = []; }
|
if (!results.topics) { results.topics = []; }
|
||||||
if (!results.users) { results.users = []; }
|
if (!results.users) { results.users = []; }
|
||||||
|
@ -387,7 +387,7 @@ Discourse::Application.routes.draw do
|
|||||||
get "category/*path" => "categories#redirect"
|
get "category/*path" => "categories#redirect"
|
||||||
|
|
||||||
get "top" => "list#top"
|
get "top" => "list#top"
|
||||||
post "search" => "search#query"
|
get "search/query" => "search#query"
|
||||||
|
|
||||||
# Topics resource
|
# Topics resource
|
||||||
get "t/:id" => "topics#show"
|
get "t/:id" => "topics#show"
|
||||||
|
Reference in New Issue
Block a user