How to open a new window when click link in Gojs

This is where I define the link template

That’s right – implement a GraphObject.click event handler. The second argument will be the object that has the event handler defined on it.