mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Remove :term from admin/search_logs/term/:term route.
Search log terms is a string that can contain characters like `/` which messes with the route.
This commit is contained in:
@@ -11,10 +11,11 @@ export default Discourse.Route.extend({
|
||||
model(params) {
|
||||
this._params = params;
|
||||
|
||||
return ajax(`/admin/logs/search_logs/term/${params.term}.json`, {
|
||||
return ajax(`/admin/logs/search_logs/term.json`, {
|
||||
data: {
|
||||
period: params.period,
|
||||
search_type: params.searchType
|
||||
search_type: params.searchType,
|
||||
term: params.term
|
||||
}
|
||||
}).then(json => {
|
||||
// Add zero values for missing dates
|
||||
|
||||
Reference in New Issue
Block a user