mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 01:41:25 +08: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:
@ -577,11 +577,12 @@ export default function() {
|
||||
]);
|
||||
});
|
||||
|
||||
this.get("/admin/logs/search_logs/term/ruby.json", () => {
|
||||
this.get("/admin/logs/search_logs/term.json", () => {
|
||||
return response(200, {
|
||||
term: {
|
||||
type: "search_log_term",
|
||||
title: "Search Count",
|
||||
term: "ruby",
|
||||
data: [{ x: "2017-07-20", y: 2 }]
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user