Closed Stenz123 closed 3 weeks ago
Api url is used by the wakatime cli to call the backend whereas this hardcoded opens the dashboard.
But if you parse the api_url string and use the part in front of the /api and replace it with /dashboard instead?
Another approach to solve this issue could be to add another config option which specifies the dashboard url.
The dashboard url is currently hard coded to wakatime.com see in code. On a self-hosted system (when the
api_url
param is set) this will redirect to the wrong dashboard when clicking on the Statusbar Icon. I am willing to fix this myself, but is it viable to parse the dashboard URL from theapi_url
option?