For a recent project I needed to be able to trigger a popup about a point on a graph. This meant using a javascript URL rather than a genuine redirect. I achieved this by making one small change to the MakeCurveItemURL function in Link.cs
The very first line of that routine is currently "string url = _url;" I changed this to "string url = String.Format(_url, index.ToString());"
This allowed me to use a template string to include the point index: "javascript:popup({0}); //" (this triggered the poipup for the specified point and commented out the additional "?index=1" the system tacked on the end). Ideally the system wouldn't tag anything onto the end if there was a "{0}" contained in the url path but I was trying to achieve this with the smallest possible deviation from the core code.
Modified Link.cs file