wakatime / jetbrains-wakatime

IntelliJ IDEA, PyCharm, RubyMine, PhpStorm, AppCode, AndroidStudio, Goland, Rider, & WebStorm plugin for quantifying your coding.
https://wakatime.com/intellij-idea
BSD 3-Clause "New" or "Revised" License
1.14k stars 167 forks source link

Redirect to correct dashboard on selfhosted systems when clicking the Statusbar Icon #296

Closed Stenz123 closed 3 weeks ago

Stenz123 commented 3 weeks ago

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 the api_url option?

gandarez commented 3 weeks ago

Api url is used by the wakatime cli to call the backend whereas this hardcoded opens the dashboard.

Stenz123 commented 3 weeks ago

But if you parse the api_url string and use the part in front of the /api and replace it with /dashboard instead?

Stenz123 commented 3 weeks ago

Another approach to solve this issue could be to add another config option which specifies the dashboard url.