📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
temporarily removed encodeURIComponent for filters
Blue Moused4d28e8267d7
diff --git a/apps/production/src/analytics/analytics.service.ts b/apps/production/src/analytics/analytics.service.tsindex e69dabcf9..5f47255c8 100644--- a/apps/production/src/analytics/analytics.service.ts+++ b/apps/production/src/analytics/analytics.service.ts@@ -902,24 +902,28 @@ export class AnalyticsService {const res = []+ // commented encodeURIComponent lines of code to support filtering for pages like /product/[id]+ // until I find a more suitable solution for that laterif (_isArray(filter)) {for (const f of filter) {- let encoded = f+ // let encoded = f- if (column === 'pg' && f !== null) {- encoded = _replace(encodeURIComponent(f), /%2F/g, '/')- }+ // if (column === 'pg' && f !== null) {+ // encoded = _replace(encodeURIComponent(f), /%2F/g, '/')+ // }- res.push({ filter: encoded, isExclusive })+ // res.push({ filter: encoded, isExclusive })+ res.push({ filter: f, isExclusive })}} else {- let encoded = filter+ // let encoded = filter- if (column === 'pg' && filter !== null) {- encoded = _replace(encodeURIComponent(filter), /%2F/g, '/')- }+ // if (column === 'pg' && filter !== null) {+ // encoded = _replace(encodeURIComponent(filter), /%2F/g, '/')+ // }- res.push({ filter: encoded, isExclusive })+ // res.push({ filter: encoded, isExclusive })+ res.push({ filter, isExclusive })}if (prev[column]) {