mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-14 00:50:14 -04:00
regression search route was getting in the way
This commit is contained in:
parent
1f59375c82
commit
214034f34a
2 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ function searchForTerm(term, opts) {
|
|||
};
|
||||
}
|
||||
|
||||
return Discourse.ajax('/search/', { data: data }).then(function(results){
|
||||
return Discourse.ajax('/search/', { data: data, method: 'POST' }).then(function(results){
|
||||
// Topics might not be included
|
||||
if (!results.topics) { results.topics = []; }
|
||||
if (!results.users) { results.users = []; }
|
||||
|
|
|
@ -387,7 +387,7 @@ Discourse::Application.routes.draw do
|
|||
get "category/*path" => "categories#redirect"
|
||||
|
||||
get "top" => "list#top"
|
||||
get "search" => "search#query"
|
||||
post "search" => "search#query"
|
||||
|
||||
# Topics resource
|
||||
get "t/:id" => "topics#show"
|
||||
|
|
Loading…
Reference in a new issue