Skip to content

Commit d3a22c2

Browse files
authored
fix: correct URL encoding for category filter query params (#566)
Fixes ActivityWatch/activitywatch#1051
1 parent 9d58554 commit d3a22c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/SelectableVisualization.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ div
6464
aw-summary(:fields="activityStore.category.top",
6565
:namefunc="e => e.data['$category'].join(' > ')",
6666
:colorfunc="e => e.data['$category'].join(' > ')",
67-
:linkfunc="e => '#' + $route.path + '?category=' + e.data['$category'].join('>')",
67+
:linkfunc="e => '#' + $route.path + '?category=' + encodeURIComponent(e.data['$category'].join('>'))",
6868
with_limit)
6969
div(v-if="type == 'category_tree'")
7070
aw-categorytree(:events="activityStore.category.top")

0 commit comments

Comments
 (0)