-
-
Notifications
You must be signed in to change notification settings - Fork 810
Description
-
I am on the latest ActivityWatch version.
-
I have searched the issues of this repo and believe that this is not a duplicate.
-
OS name and version:
Microsoft Windows [Version 10.0.19045.4291] -
ActivityWatch version:
v0.12.2 (rust)
Describe the bug
Using link to filter for category from summary view seems to navigate to invalid encoded path: plus (+) signs seems to be an issue. The same goes ampersand (&) character. I didn't test for other for now.
To Reproduce
- Launch the ActivityWatcher
- Create category with problematic character, like
C/C++. - Make up some activity so it's logged.
- Go to Activity > Summary > Top Categories.
- Click the created category.

- You are navigated to
.../view/summary?category=[...]>C%2FC%20%20, but no activity is shown ("no data").

Expected behaviour
I expected to find the usual activity log breakdown etc.
Documentation
Whole issue seems to result from invalid URL encoding:
URLs cannot contain spaces. URL encoding normally replaces a space with a plus (+) sign or with %20.
(https://www.w3schools.com/tags/ref_urlencode.ASP)
Let me know if you need any logs or anything, but I don't think its applicable here.
Additional context
Workaround
Aside from obvious "just avoid problematic characters", you can still view activity using manual filter selection:

Link changes then to .../view/summary?category=Work>Programming>C%2FC%2B%2B, note the difference %20 and %2B for plus characters.