From 91e418fba209651773ecfa7ceef7b4aa30d55ba2 Mon Sep 17 00:00:00 2001 From: Pavel Kvach Date: Wed, 8 May 2024 11:21:55 +0300 Subject: [PATCH] fix: Correct encoding in category filter links on summary view Fixes https://github.com/ActivityWatch/activitywatch/issues/1051 --- src/components/SelectableVisualization.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/SelectableVisualization.vue b/src/components/SelectableVisualization.vue index f898e84e..24993f5b 100644 --- a/src/components/SelectableVisualization.vue +++ b/src/components/SelectableVisualization.vue @@ -64,7 +64,7 @@ div aw-summary(:fields="activityStore.category.top", :namefunc="e => e.data['$category'].join(' > ')", :colorfunc="e => e.data['$category'].join(' > ')", - :linkfunc="e => '#' + $route.path + '?category=' + e.data['$category'].join('>')", + :linkfunc="e => '#' + $route.path + '?category=' + encodeURIComponent(e.data['$category'].join('>'))", with_limit) div(v-if="type == 'category_tree'") aw-categorytree(:events="activityStore.category.top")