Skip to content

Commit

Permalink
Link query param (#279)
Browse files Browse the repository at this point in the history
* Change utm_medium query params to intellij in mft links

* Add changelog
  • Loading branch information
gememma authored Sep 5, 2024
1 parent ca730f9 commit ba25fe1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/278.internal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Change link attributions from plugin or cli source to intellij source for notifications from mirrord.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ data class IdeMessage(val id: String, val level: NotificationLevel, val text: St
this.actions.forEach {
if (it["kind"].asString == "Link") {
val action = Gson().fromJson(it, IdeAction.Link::class.java)
notification.withLink(action.label, action.link)
var link = action.link.replace("utm_medium=plugin", "utm_medium=intellij")
link = link.replace("utm_medium=cli", "utm_medium=intellij")
notification.withLink(action.label, link)
}
}

Expand Down

0 comments on commit ba25fe1

Please sign in to comment.