diff --git a/CHANGELOG.md b/CHANGELOG.md index e5b7f2449..674a9100a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -53,6 +53,7 @@ NOTE: As semantic versioning states all 0.y.z releases can contain breaking chan - [#143](https://github.com/kobsio/kobs/pull/143): Fix a bug in the Jaeger plugin, where results were not refreshed after a user selected another service, operation, etc. - [#146](https://github.com/kobsio/kobs/pull/146): Fix logic for long running requests introduced in [#144](https://github.com/kobsio/kobs/pull/144). - [#163](https://github.com/kobsio/kobs/pull/163): Remove legend from logs chart and use `useDimensions` hook. +- [#168](https://github.com/kobsio/kobs/pull/168): Fix missing encoding of query parameter in ClickHouse plugin. ### Changed diff --git a/plugins/clickhouse/src/components/page/LogsPage.tsx b/plugins/clickhouse/src/components/page/LogsPage.tsx index 07b3bfed3..2ad973be2 100644 --- a/plugins/clickhouse/src/components/page/LogsPage.tsx +++ b/plugins/clickhouse/src/components/page/LogsPage.tsx @@ -26,9 +26,9 @@ const LogsPage: React.FunctionComponent = ({ name, displayName, history.push({ pathname: location.pathname, - search: `?query=${opts.query}&order=${opts.order}&orderBy=${opts.orderBy}&time=${opts.times.time}&timeEnd=${ - opts.times.timeEnd - }&timeStart=${opts.times.timeStart}${fields.length > 0 ? fields.join('') : ''}`, + search: `?query=${encodeURIComponent(opts.query)}&order=${opts.order}&orderBy=${opts.orderBy}&time=${ + opts.times.time + }&timeEnd=${opts.times.timeEnd}&timeStart=${opts.times.timeStart}${fields.length > 0 ? fields.join('') : ''}`, }); };