diff --git a/MarkMpn.Sql4Cds/SettingsForm.cs b/MarkMpn.Sql4Cds/SettingsForm.cs index 134c8a67..0c5600d9 100644 --- a/MarkMpn.Sql4Cds/SettingsForm.cs +++ b/MarkMpn.Sql4Cds/SettingsForm.cs @@ -67,7 +67,28 @@ protected override void OnClosing(CancelEventArgs e) private void helpIcon_Click(object sender, EventArgs e) { - System.Diagnostics.Process.Start((string) ((Control)sender).Tag); + var url = (string)((Control)sender).Tag; + const string token = "WT.mc_id=DX-MVP-5004203"; + + var anchor = url.IndexOf('#'); + var query = url.IndexOf('?'); + + if (anchor == -1) + { + if (query == -1) + url += "?" + token; + else + url += "&" + token; + } + else + { + if (query == -1) + url = url.Insert(anchor, "?" + token); + else + url = url.Insert(anchor, "&" + token); + } + + System.Diagnostics.Process.Start(url); } } }